#How do I remove a role from a member

3 messages · Page 1 of 1 (latest)

umbral wolf
#

I've been able to add a role this whole time. But I can't seem to remove it. It always gives me an error, says I don't have permission. But the bot is admin.

Is the function still member.roles.remove(role) ? Or is that my mistake

abstract elkBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
ancient apex
#

administrator has nothing to do with this, its likely because you're removing a role thats higher than the bots role