Allowed and blocked scopes
Many commands and modules let you limit who may use them and where. You do this with lists of roles and channels.
How the lists work
| List | Effect |
|---|---|
| Allowed Roles / Allowed Channels | Only the selected roles or channels may use the feature. An empty list means no restriction. |
| Blocked Roles / Blocked Channels | The selected roles or channels are always denied. |
All lists are checked together. A member must hold an allowed role (if the list is not empty), must not hold a blocked role, and must use the feature in an allowed channel (if the list is not empty) that is not blocked. A blocked entry therefore wins over an allowed one.
Voice and stage channels can be selected like text channels because they have their own text chat.
Where to find them
- Commands: select the gear icon of a command to set Allowed Roles, Allowed Channels, Blocked Roles, Blocked Channels and Required Permissions (Discord permissions a member needs). See Command activation.
- Modules: several modules offer the same idea with their own labels, for example allowed roles in Counting, allowed channels and roles in the Level System, blacklisted roles in Giveaway, ignored channels and roles in Starboard (with the modes Exclude and Only Selected) or the allowed roles of an Interaction Builder panel. Read the hint below the field and the module page for the exact meaning.
- Anti-Raid whitelist: whitelisted roles and users are exempt from security checks instead of being restricted.
Example
You want /giveaway create only for the role Staff and only in the channel #staff-commands, and never for members with the role Muted:
- Open Commands and select the gear icon of
/giveaway create. - Set Allowed Roles to Staff and Allowed Channels to
#staff-commands. - Set Blocked Roles to Muted and save.
A Staff member who also holds Muted cannot use the command.
Troubleshooting
- A member cannot use a command: Check all four lists. A blocked role or channel always wins.
- The command is allowed but still fails: Check that the module and the command are enabled, the cooldown and the required permissions.