From 12f6915538b5a7bc7c6265bb191ce5d59a56f353 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 1 Jun 2022 00:25:56 +1000 Subject: [PATCH] Brought back the previously removed table to show which rights would emulate discord.com. Also added a warning against setting rights to 1. --- docs/api/rights.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/api/rights.md b/docs/api/rights.md index 764387a..fa8d65f 100644 --- a/docs/api/rights.md +++ b/docs/api/rights.md @@ -14,6 +14,22 @@ For example, to grant `CREATE_GUILDS` and `SEND_MESSAGES`, grant the user(s) `(1 << 25) = 33554432` = `33587200` +!!! warning "The default rights are current `0`. ***NEVER*** set default rights to `1` ( `OPERATOR` ), as this allows ANY USER to perform ANY ACTION including shutting down the server. ONLY EVER GIVE YOURSELF `OPERATOR` RIGHTS." + +The rights value `648540060672` emulates the rights of users on Discord.com, granting: + +| Default Rights | | | +|---------------------|-------------------------|---------------------------| +| `CREATE_CHANNELS` | `SELF_DELETE_MESSAGES` | `USE_ACHIEVEMENTS` | +| `CREATE_DMS` | `SELF_EDIT_MESSAGES` | `SELF_ADD_DISCOVERABLE` | +| `CREATE_DM_GROUPS` | `SELF_EDIT_NAME` | `SELF_LEAVE_GROUPS` | +| `CREATE_GUILDS` | `SEND_MESSAGES` | `KICK_BAN_MEMBERS` | +| `CREATE_INVITES` | `USE_ACTIVITIES` | `SELF_ADD_REACTIONS` | +| `CREATE_ROLES` | `USE_VIDEO` | `DEBTABLE` | +| `CREATE_TEMPLATES` | `USE_VOICE` | `PIN_MESSAGES` | +| `CREATE_WEBHOOKS` | `INVITE_USERS` | `SELF_DELETE_DISABLE` | +| `JOIN_GUILDS` | `CREATE_APPLICATIONS` | | + Below is a list of all available rights | Right | Value | Grants when it's 1 |