Issue adding and removing roles in same command
I have a select menu command where you select the roles you want to add/remove from a list when roles are selected it checks if the user has the roles already, what roles didn't get elected and removes the unselected roles and add the selected roles. this issue I am having is when I combine the roles.add and the roles.remove the member roles remain unchanged and no error is given.
5 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.node v18.16.0
full code
doesnt this remove roles that are not set though
I didn't think to do it that way shouldn't be hard to modify my code because i already do half the process. thank you