Permissions
Permissions are a way to enable or disable text commands for the server, or specific sections of it (based on role, channel or user).
Due to how slash commands are implemented, this system also works with most slash commands. However, you should check out Discord's built-in command permissions for finer grained control. Discord's built in system also has the advantage of hiding commands that users cannot run from their command list.
The permission system is simple: for each command invocation, go down the list of permissions, return the result from the first permission matching the invocation. For example, if you have 3 permissions configured:
When @user1 executes a command from group Fluff, they will be disallowed from doing so, because the check stops at permission 2 and never gets to permission 3. Therefore, it is important to order your permissions correctly.
Members with the Manage Server permission can edit command permissions and are always able to run commands, in order to prevent lockouts.
permissions¶
(aliases: permission, perms, perm)
The base command. Alias of permissions list.
c>permissions
permissions list¶
(aliases: permissions ls)
List the command permissions for this server.
c>permissions list
/permissions list
permissions move¶
(aliases: permissions mv)
Move a permission from one position to another in the list.
c>permissions move <source> <destination>
/permissions move source:<source> destination:<destination>
Options
source: The position of the permission to move.destination: The new position.
permissions delete¶
(aliases: permissions remove, permissions del, permissions rm)
Delete the permission at the given position.
c>permissions delete <position>
/permissions delete position:<position>
Options
position: The position of the permission to delete.
permissions reset¶
Reset all permissions for this server.
c>permissions reset
/permissions reset
permissions server¶
Enable or disable a command or group at the server level.
c>permissions server <command_or_group> <is_allowed>
/permissions server command_or_group:<command_or_group> is_allowed:<True|False>
Options
command_or_group: The command or group name.is_allowed: Whether the command is enabled or not.
permissions serverall¶
Enable or disable all commands at the server level.
c>permissions serverall <is_allowed>
/permissions serverall is_allowed:<True|False>
Options
is_allowed: Whether the command is enabled or not.
permissions role¶
Enable or disable a command or group at the role level.
c>permissions role <command_or_group> <role> <is_allowed>
/permissions role command_or_group:<command_or_group> role:<role> is_allowed:<True|False>
Options
command_or_group: The command or group name.role: The role to apply this permission to.is_allowed: Whether the command is enabled or not.
permissions roleall¶
Enable or disable all commands at the role level.
c>permissions roleall <role> <is_allowed>
/permissions roleall role:<role> is_allowed:<True|False>
Options
role: The role to apply this permission to.is_allowed: Whether the command is enabled or not.
permissions channel¶
Enable or disable a command or group at the channel level.
c>permissions channel <command_or_group> <channel> <is_allowed>
/permissions channel command_or_group:<command_or_group> channel:<channel> is_allowed:<True|False>
Options
command_or_group: The command or group name.channel: The channel to apply this permission to.is_allowed: Whether the command is enabled or not.
permissions channelall¶
Enable or disable all commands at the channel level.
c>permissions channelall <channel> <is_allowed>
/permissions channelall channel:<channel> is_allowed:<True|False>
Options
channel: The channel to apply this permission to.is_allowed: Whether the command is enabled or not.
permissions member¶
Enable or disable a command or group at the member level.
c>permissions member <command_or_group> <member> <is_allowed>
/permissions member command_or_group:<command_or_group> member:<member> is_allowed:<True|False>
Options
command_or_group: The command or group name.member: The member to apply this permission to.is_allowed: Whether the command is enabled or not.
permissions memberall¶
Enable or disable all commands at the member level.
c>permissions memberall <member> <is_allowed>
/permissions memberall member:<member> is_allowed:<True|False>
Options
member: The member to apply this permission to.is_allowed: Whether the command is enabled or not.