Commands your server writes itself. Somebody types the prefix and a word, and the bot replies with whatever you told it to say.
Setting it up
- Switch the module on.
- Add a command: a name, and the reply.
- Optionally restrict it to a role.
The name is what people type after your server's prefix — !rules if your prefix is !.
Role gates
A command can be limited to people holding a role. Somebody without it gets no reply at all rather than a refusal, which keeps a staff-only command from advertising itself.
Usage counts
Each command records how many times it has actually answered. A refusal on the role gate is not counted and neither is a send that failed, so the number means "times this replied" rather than "times somebody typed it".
Built-in commands win
A command named after one of the bot's own — ping, rank, channel — will not run. The
built-in answers instead. If a command of yours stops working after an update, a new built-in
taking its name is worth checking first.
Why these are prefix commands
Slash commands are registered with Discord application-wide, so a command one server invented cannot be offered only to that server without a round trip to Discord per server. Prefix commands need none of that, which is why your own commands work this way and the bot's own are slash commands.
