SudoBot uses a hybrid permission system that supports three distinct modes. Each server can run a different mode, so you can pick the level of granularity that suits your community. The mode you choose determines how the bot decides whether a member is allowed to run a command or trigger a moderation action.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/onesoft-sudo/sudobot/llms.txt
Use this file to discover all available pages before exploring further.
The three modes
Discord mode
Relies entirely on Discord’s native permissions. The simplest option and the default.
Levels mode
Assigns integer permission levels (0–100) to users and roles, each with a predefined set of allowed commands.
Advanced mode
Grants fine-grained permissions through database entries that describe exactly what each role or user can do.
Discord-based mode
In Discord mode, SudoBot checks whether the member has the Discord permission that corresponds to the command they are attempting to use. For example, runningban requires the BanMembers Discord permission. A member satisfies this check if they are the server owner, an administrator, or have a role that explicitly grants the required permission.
This mode is enabled by default and requires no additional configuration beyond setting the permissions.mode value.
Discord mode is the easiest to set up but gives the least control. If you want moderators to be able to use only some bot commands without granting them broad Discord permissions, consider switching to levels or advanced mode.
Level-based mode
Level-based mode replaces Discord permission checks with an integer scale from0 to 100. You assign a level to users and roles, and each level unlocks a predefined set of bot commands and actions.
- Level
0means no special permissions (regular member). - Level
100grants access to everything. - Levels in between provide a tiered structure (for example, level 50 for moderators and level 75 for senior staff).
permission_levels table in the bot’s database.
Advanced mode (permission roles)
Advanced mode gives you the highest degree of control. You create entries in thepermission_roles database table that specify exactly which users or roles receive which permissions. The bot merges these entries with Discord’s own permission checks at runtime, making the full system extremely flexible.
Advanced mode is suitable when your server has a complex staff hierarchy where different moderators need access to different subsets of commands, and neither Discord permissions nor a simple level scale is expressive enough.
Each permission role entry can have a human-readable name. The name does not affect the bot’s behavior — it is only for your own organization.
Configuring the permission mode
To change the permission mode for a guild, openconfig/config.json and set the permissions.mode property inside that guild’s configuration object.
- Discord mode
- Level-based mode
- Advanced mode
Accepted values for permissions.mode
| Value | Mode |
|---|---|
"discord" | Discord-based (default) |
"levels" | Level-based |
"advanced" | Permission roles / overwrites |
