summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-30 13:32:48 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-30 13:32:48 +1000
commit95e7238e8fe6f83ab4cefa01a7ebd03f954b506b (patch)
treef1b9cbe032f8984e61850e47188378669474841f /src/util
parentFix fetching members for roles in POST message (diff)
downloadserver-95e7238e8fe6f83ab4cefa01a7ebd03f954b506b.tar.xz
Split MANAGE_GUILDS right into MANAGE_GUILDS for instance-wide control and SELF_EDIT_GUILDS for control over guilds you own or have perms to edit
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util/Rights.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/util/Rights.ts b/src/util/util/Rights.ts
index 659353a6..d6e539c0 100644
--- a/src/util/util/Rights.ts
+++ b/src/util/util/Rights.ts
@@ -32,7 +32,7 @@ export class Rights extends BitField {
 	static FLAGS = {
 		OPERATOR: BitFlag(0), // has all rights
 		MANAGE_APPLICATIONS: BitFlag(1),
-		MANAGE_GUILDS: BitFlag(2),
+		MANAGE_GUILDS: BitFlag(2),	 // Manage all guilds instance-wide
 		MANAGE_MESSAGES: BitFlag(3), // Can't see other messages but delete/edit them in channels that they can see
 		MANAGE_RATE_LIMITS: BitFlag(4),
 		MANAGE_ROUTING: BitFlag(5), // can create custom message routes to any channel/guild
@@ -78,6 +78,7 @@ export class Rights extends BitField {
 		SEND_BACKDATED_EVENTS: BitFlag(42), // can send backdated events
 		USE_MASS_INVITES: BitFlag(43), // added per @xnacly's request — can accept mass invites
 		ACCEPT_INVITES: BitFlag(44), // added per @xnacly's request — can accept user-specific invites and DM requests
+		SELF_EDIT_GUILDS: BitFlag(45),	// Edit guilds you own or have permission to edit
 	};
 
 	any(permission: RightResolvable, checkOperator = true) {