Missing permissions while trying to ban someone
when executing
22 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!well, the error is clear
either your bot does not have permissions to ban people
discord.js@14.11.0
node v18.16.0
or you are trying to ban someone with a higher role
It has. I checked. But ill check second suggestion :P
But i was running this command as a owner on someone who was lower in hierarchy
so
the bot needs to be higher
it is
it is on the top
your error disagrees
either your bot does not have permission, or the member is above the bot
Getting a 403 Forbidden: Missing Permissions Error?
For actions involving members, check that
- The member's highest role is lower than the bot
- The member is not the owner of the server
- The server does not have "Require 2fa for moderation" enabled. (If it does, you need to enable 2fa on your own account.)
the last one would throw a different error
![](https://cdn.answeroverflow.com/1139314267804405944/image.png)
![](https://cdn.answeroverflow.com/1139314268064464926/image.png)
im owner, and bot is on top
double check that the bot actually has the Ban Members permission
and the member you are trying to ban is? / has which roles
hold on