Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/pin and /unpin commands don't find the role Pineur #6

Closed
NovAti0n opened this issue Aug 28, 2023 · 1 comment
Closed

/pin and /unpin commands don't find the role Pineur #6

NovAti0n opened this issue Aug 28, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@NovAti0n
Copy link
Collaborator

NovAti0n commented Aug 28, 2023

While having the role Pineur should automatically pin the message without doing any vote, that doesn't work. The problem comes from the following line:

interaction.member.roles.cache.some(role => role.name === ROLE_NAME)

which evaluates to false even if the member has the role Pineur. This behavior also occurs in the /unpin command.

@NovAti0n NovAti0n added the bug Something isn't working label Aug 28, 2023
@NovAti0n NovAti0n changed the title /pin command doesn't find the role Pineur /pin and /unpin commands don't find the role Pineur Aug 30, 2023
@NovAti0n
Copy link
Collaborator Author

I can't seem to be able to reproduce the issue, I'll mark this as solved for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants