Slashcommand permissions
Does discordjs have any functions to have permissions on slash commands, for examply if user doesn't have staff role he can't use that command or it doesn't show on roles? Thanks
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!
- ✅
Marked as resolved by OPThat's not developer's job. Server admins can manage that in Server settings > Integrations > The bot > Commands > Permissions
From the API you can only set required permission
- You can only set default permissions (member and DM) in your code. learn more
- Be aware that server staff can overwrite all of the suggested permissions to their liking in Server Settings > Integrations.
Okay, thanks!