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
d.js toolkit
d.js toolkit6d 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
Syjalo
Syjalo6d ago
That'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
d.js docs
d.js docs6d ago
- 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.
kwamppi
kwamppiOP6d ago
Okay, thanks!

Did you find this page helpful?