4 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!make the appropriate permission checks before making api requests
and also hierarchy checks as appropriate (adding roles, changing nicknames, etc)
Suppose I need to make lockdown command then what are the permission check should I do
@Mark
You need the
ManageChannels
permission, you can edit it with permissionOverwrites.edit
:
https://discordjs.guide/popular-topics/permissions.html#adding-overwritesdiscord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.