permission

How handle missing permission in my bot
4 Replies
d.js toolkit
d.js toolkit5mo 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!
Mark
Mark5mo ago
make the appropriate permission checks before making api requests and also hierarchy checks as appropriate (adding roles, changing nicknames, etc)
Pranav
PranavOP5mo ago
Suppose I need to make lockdown command then what are the permission check should I do @Mark
vitro.
vitro.5mo ago
You need the ManageChannels permission, you can edit it with permissionOverwrites.edit: https://discordjs.guide/popular-topics/permissions.html#adding-overwrites
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Want results from more Discord servers?
Add your server