,restrict
Restrict commands to specific roles.
How to use it
Type it in any channel where the bot can read messages. The prefix is , on this server and can be changed with ,prefixes.
,restrict <role>
,restrict add ban @Moderator,restrict list,restrict remove ban @ModeratorArguments
Square brackets are optional, angle brackets are required — the same legend ,help restrict prints in Discord.
| Parameter | Kind | What it takes |
|---|---|---|
role | required | a role mention, name or id |
Before you run it
What the command itself checks before it does anything, read from the src/commands/server/restrict.js source.
- Permissions
- Manage Server
- Reads
- role mentions
- Replies with
- a plain message, paginated when it runs long
- Cooldown
- 3s per member, per server
Every subcommand
Call the command with no argument inside Discord and the bot draws one page per subcommand, exactly like this.
| Subcommand | What it does |
|---|---|
,restrict add<command> <@role> | only let one role use a command |
,restrict remove<command> [<@role>] | drop a command's restriction |
,restrict list | every restricted command here |
,restrict clear | remove every restriction here |
In Discord
What a member sees when they run it. The reply is sent as a Components V2 panel on the server's accent colour, paginated when it is long.
More server commands
Commands that usually get used alongside ,restrict.
Ready to put bleh in your server?
Add it in a couple of clicks, run ,setup, then fine-tune everything from the dashboard.