Enabling and disabling commands
Turn individual commands off per server – via the dashboard, the /togglecommand command or the disabledCommands.json file.
In the dashboard#
The Commands tab lists every command with a switch. Disabled commands reply on the server with a notice that the command or its module was disabled.
The switch applies per server. It does not change which commands Discord shows – the command stays visible but does not respond.
With /togglecommand#
The same state can be changed directly in Discord. The command is an admin command and requires elevated permissions.
| Command | Description | Permissions |
|---|---|---|
/togglecommand | Enables or disables commands server-wide (Admin only) | Administrator |
→ Details in the command reference
Via the file#
State is stored per server in disabledCommands.json in the bot directory. The file is what the bot reads at startup – editing it by hand works, but only takes effect after restarting the bot.
{
"123456789012345678": ["ban", "kick", "clear"]
}Server ID → disabled command names. Maintain via the dashboard or /togglecommand.
Module switches and command switches are two different things: a disabled module mutes its commands, a disabled command stays off individually.