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

s
13 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Parogo_72
Parogo_722y ago
You cant
Qwerty!
Qwerty!2y ago
really?
Parogo_72
Parogo_722y 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!2y ago
oh Could We Do It But This Time Its A User? So
Parogo_72
Parogo_722y ago
Same thing, thats admin job
Qwerty!
Qwerty!2y ago
If The User Is Me Then It Would Do What The Command
Parogo_72
Parogo_722y ago
The only thing you can limit is the perms But admins can overwrite it afaik
Qwerty!
Qwerty!2y ago
How To Di It With Perms Then?
Parogo_72
Parogo_722y ago
But you can of course make intenal checks inside the command when it is run
Qwerty!
Qwerty!2y ago
How To Do That Im New
d.js docs
d.js docs2y ago
Suggestion for @Qwerty!:guide Slash Commands: Slash command permissions read more
Qwerty!
Qwerty!2y ago
ty btw