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
d.js toolkit
d.js toolkit6mo ago
- 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 OP
Amgelo
Amgelo6mo ago
unrelated but I'm pretty sure no bot always needs every single permission I think you should be able to simplify it using #missing()
d.js docs
d.js docs6mo ago
:method: PermissionsBitField#missing @14.15.3 Gets all given bits that are missing from the bitfield.
Want results from more Discord servers?
Add your server