check if role is set to certain role ids
how do i check if the role is set to certain ids?
it still runs the following code in the if statement (the second line is only conditions) even though the role is equal to one in the list
i have verified const role is correct and prints the correct id
6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OProle !== id1 && role !== id2 && role !== id3
yeah did that
i think you need to use the AND operator instead of OR
it needs to check each one
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View