how to create a command that only a role that can use the command

s
13 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Parogo_72
Parogo_723y ago
You cant
Qwerty!
Qwerty!OP3y ago
really?
Parogo_72
Parogo_723y ago
Well you can check inside the command for interaction.member.roles But it will show in the slashcommand bar Limiting slashcommand usage is admin job, not the developer
Qwerty!
Qwerty!OP3y ago
oh Could We Do It But This Time Its A User? So
Parogo_72
Parogo_723y ago
Same thing, thats admin job
Qwerty!
Qwerty!OP3y ago
If The User Is Me Then It Would Do What The Command
Parogo_72
Parogo_723y ago
The only thing you can limit is the perms But admins can overwrite it afaik
Qwerty!
Qwerty!OP3y ago
How To Di It With Perms Then?
Parogo_72
Parogo_723y ago
But you can of course make intenal checks inside the command when it is run
Qwerty!
Qwerty!OP3y ago
How To Do That Im New
d.js docs
d.js docs3y ago
Suggestion for @Qwerty!:guide Slash Commands: Slash command permissions read more
Qwerty!
Qwerty!OP3y ago
ty btw
Want results from more Discord servers?
Add your server