Command rules
Who may type what, and where. Two modes, two scopes, one cascade that settles it.
In short
With no rule at all, every command works everywhere. One rule changes that for a single command, a single channel, or the whole server at once.
A rule carries one of two modes: allow, or deny. It targets a command and takes effect the moment it is set, with no restart and no delay.
It also carries one of two scopes: the whole server, or a single channel. The channel is read first, so it always wins over the server.
The target is written in three ways: a command, one precise branch with its dot, or the wildcard that takes everything.
The bot reads eight rungs in a fixed order and stops at the first that answers. Deny before allow, channel before server: that order, and nothing else, decides.
Three ways to name a target
A rule first picks one of two scopes, then names what it targets. The server covers every channel; a channel covers only itself, and goes first.
| Spelling | Example | What it takes |
|---|---|---|
| One command | pets | The command and all of its subcommands: a rule set on a parent flows down to every one of its branches. |
| One branch | pets.list | That subcommand alone. The rest of the command is untouched, and the slash autocomplete offers every branch. |
| The wildcard | * or all | Every command in the scope at once, but read after the ones naming a precise command. |
The wildcard is written
*orall: the 2 spellings are strictly equivalent.
Eight rungs, read in this order
The bot walks down the list and stops at the first rung that answers. If none answers, the command goes through.
One command can be targeted by several rules at once: the rung's rank, never the rule's date, is what settles it.
There are three situations that short-circuit the whole cascade, so a badly set deny never locks the server down.
Seven moves to keep the rules
One command, >commandrules, shortened to >cr, followed by the word below. Moderation means Administrator or Manage Messages; >sudo stands apart and asks for Administrator.
There is no one-off deletion from Discord: a rule that gets in the way is cleared with a
reset, then set again differently.
The commands
Manage command rules for the server · servers only
<target>The target to allow the command in<command>The command to allow[channel]The channel you want to allow the command in
<target>The target to deny the command in<command>The command to deny[channel]The channel you want to deny the command in
Allow administrators to bypass command rules in a server · servers only