1. Documentation
  2. Commands

Enabling and restricting commands

Switch a command off, or reserve it for certain roles.


From Configuration → Commands, each command can be:

  • enabled or disabled on this server;
  • restricted to certain roles.

Two filters that stack

This is the important point, and it is often misunderstood:

  1. The command's native Discord permissions always apply. /ban requires "Ban Members", /clear requires "Manage Messages". Bao cannot bypass them.
  2. Bao's allowed roles list is an additional filter.

An empty role list therefore does not mean the command is open to everyone: it means Bao adds no restriction on top of Discord's.

Use cases

  • Reserve /giveaway for your events team.
  • Switch off /rank and /leaderboard if you do not use levels.
  • Restrict /schedule to the people in charge of communications.

Scope

These settings belong to this server. The same bot can have different commands on two servers.