Moderation · Server
/restrictcommand
Limit commands to certain roles.
Options
These are the boxes Discord shows when you type /restrictcommand. With the prefix, type them in order after the command.
command_nametextoptionalThe command, e.g. ban or purge.
roleroleoptionalThe role allowed to use it.
Actions
Pick one with the action option on /restrictcommand, or type it straight after the command, like ,restrictcommand add.
| Action | What it does |
|---|---|
add | Limit a command to a role. |
list | Show command role limits. |
remove | Remove a role limit from a command. |
reset | Remove every command role limit (asks to confirm). |
restrictcommand add
Limit a command to a role.
syntax
,restrictcommand add <command> <role>/restrictcommand action:add command_name:ban role:@Members
restrictcommand list
Show command role limits.
syntax
,restrictcommand list [command]# the short way
/restrictcommand action:list
# with every option filled in
/restrictcommand action:list command_name:ban
restrictcommand remove
Remove a role limit from a command.
syntax
,restrictcommand remove <command> <role>/restrictcommand action:remove command_name:ban role:@Members
restrictcommand reset
Remove every command role limit (asks to confirm).
syntax
,restrictcommand reset/restrictcommand action:reset