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
[email protected]
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
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
the error says you're trying to ban 454341168344596483, which is your current account
which is also the owner
i cannot read any of that
just 2fa for server
wtf
double check where you set
member
kk, gimme sec
DiscordAPIError[60003]: Two factor is required for this operation, but i have 2fa turned on on my acc
wtf xD
That's kinda funny tho, cuz i've written one banning command before, like 2 days ago and it worked perfectly. I've changed it a little bit to adjust some functionalities and it now only annoy me