is this a right way to do?
i created a interactionCreate.js file that was given below is that a right way to check the bot has nessery permission to do the commands
3 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 OPunrelated but I'm pretty sure no bot always needs every single permission
I think you should be able to simplify it using #missing()
:method: PermissionsBitField#missing
@14.15.3
Gets all given bits that are missing from the bitfield.