Permissions
Who can do what with the bot. The same rules apply to slash commands in Discord and to the web panel.
Admins
Admins can do everything, in every server, including every setting.
- In Discord: anyone with Discord's Administrator permission in a server is an admin there. The server owner always is. Manage Server alone isn't enough.
- In the panel: the network's owner, and anyone who is an admin in any server of the network. People who sign in with Authentik are admins if they're in a group listed in
REVENGEBOT_OIDC_ADMIN_GROUPS. - Extra admins: people added by Discord user ID in the panel's Set up page (Settings → Admins and setup) are admins in the panel, even without Administrator in Discord. Slash commands still follow their Discord permissions.
- Main server: an admin in the main server is an admin in every server (see Main server).
Only admins can use /setup, /sync, /blockemoji and /apikey, or open Settings in the panel. Panel admins are also the network admins who confirm and remove servers (details). An administrator of a server that isn't in the network yet isn't one: they can only sign in for Your servers, to add the bot and ask to join.
The permissions
Everyone else gets permissions one server at a time:
| Permission | Allows | Given by default with |
|---|---|---|
| View records | Signing in to the panel; People, Cases, Active sanctions and the Auto-mod page (read only); /case and /history |
Any of the Discord permissions below |
| Note | /note and notes in the panel |
Moderate Members |
| Warn | /warn |
Moderate Members |
| Time out | /timeout and /untimeout |
Moderate Members |
| Mute | /mute and /unmute, /restrict history and /unrestrict history |
Moderate Members |
| Kick | /kick |
Kick Members |
| Softban | /softban |
Ban Members |
| Ban | /ban and /unban |
Ban Members |
| Edit cases | /updatereason, /removenote, and the same in the panel; adding aliases to a person and choosing their main alias |
Moderate Members |
| Member lists | The Members page | Moderate Members |
| Message logs | The Message log page: edited and deleted messages, with their pictures and videos | Manage Messages |
| Purge messages | /purge |
Manage Messages |
| Slowmode | /slowmode |
Manage Channels |
| Link accounts | Linking accounts to one person (for example a proven alt) and unlinking them | Ban Members |
| Manage auto-mod | Changing auto-mod rules, the honeypot and the safety brake; /honeypot |
Manage Server |
Moderate Members is called "Timeout Members" in some Discord menus. Undoing an action needs the same permission as taking it: unban needs Ban.
Two ways to give permissions
By default, each server follows Discord's own permissions, as in the last column above. Nothing needs setting up.
With role permissions switched on for a server (panel → Settings → Permissions), each role gets exactly what's ticked for it, and Discord's permissions no longer count, except Administrator. @everyone can be given permissions too. Use this when you want, say, a "Helper" role that can warn and time out but not ban.
If you give a role a bot permission it doesn't have in Discord (Ban for a role without Ban Members, for example), Discord still hides the command from that role. Allow the command for the role in Server Settings → Integrations → the bot.
The main server
If an admin picks a main server (Settings → Main server), what someone's roles allow there, they may do in every server of the network. An admin there is an admin everywhere. This lets you manage staff in one place, such as your main community server, instead of in every server.
The main server is also where panel actions happen by default, so its mute role and logs are used.
Several networks
Permissions belong to one network. Someone who is staff in two networks has what each network's servers and roles give them there, and nothing carries over: an admin of one network is nobody in another, and roles in a server of another network don't count. In the panel they switch between their networks, and each switch checks their access again. Slash commands act in the network of the server they're used in.
The install's operators are above every network, but only in the operator console: being an operator doesn't make someone staff in a network, or let them see its records.
Two-factor sign-in
A network can require two-factor authentication on the Discord accounts of its admins or of all staff (Settings → Two-factor sign-in). Without it, sign-in to that network is refused with a message saying how to turn it on. New networks require it for admins; networks from before the setting existed start with it off. Operators always need it for the console. Authentik sign-ins follow Authentik's own rules (details).
Authentik sign-ins
People signing in to the panel with Authentik get their access from their Authentik groups:
- a group in
REVENGEBOT_OIDC_ADMIN_GROUPSmakes them an admin; - a group in
REVENGEBOT_OIDC_MODERATOR_GROUPSgives every permission except admin, in every server.
Groups are read when they sign in. Finer permissions for Authentik groups are planned for later.
Rules on top of permissions
Even with the permission, the bot refuses an action if:
- it's on yourself, the bot or the server owner;
- the person's highest role isn't below yours (and below the bot's), the same rule Discord uses;
- the person already has an active sanction of that kind (the reply names the case in force).
When changes take effect
Slash commands check permissions every time they're used. The panel checks Discord roles again every 10 minutes, so removing someone's role in Discord removes their panel access soon after. A panel sign-in lasts 12 hours; through Authentik, 1 hour, then it renews through Authentik and picks up group changes. To cut someone off at once, an admin signs them out everywhere from the Audit log.