From 3548cae8671d80508b882b609a12b77cc9f7bed9 Mon Sep 17 00:00:00 2001 From: untuned Date: Sat, 3 Jul 2021 07:28:01 -0400 Subject: [PATCH 1/2] Discord Certified Moderator flag (#1204) --- index.d.ts | 1 + lib/Constants.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b196c7962..e31efdd97 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1266,6 +1266,7 @@ declare namespace Eris { BUG_HUNTER_LEVEL_2: 16384; VERIFIED_BOT: 65536; VERIFIED_BOT_DEVELOPER: 131072; + CERTIFIED_MODERATOR: 262144; }; VoiceOPCodes: { IDENTIFY: 0; diff --git a/lib/Constants.js b/lib/Constants.js index 045d71389..f955ba7f0 100644 --- a/lib/Constants.js +++ b/lib/Constants.js @@ -252,7 +252,8 @@ module.exports.UserFlags = { SYSTEM: 1 << 12, BUG_HUNTER_LEVEL_2: 1 << 14, VERIFIED_BOT: 1 << 16, - VERIFIED_BOT_DEVELOPER: 1 << 17 + VERIFIED_BOT_DEVELOPER: 1 << 17, + CERTIFIED_MODERATOR: 1 << 18 }; From 24d84a9523f0e0f89e628dbe6fb8671bac0c1176 Mon Sep 17 00:00:00 2001 From: Avocado <43632131+Awoocado@users.noreply.github.com> Date: Sat, 3 Jul 2021 08:01:11 -0500 Subject: [PATCH 2/2] Update user flag names (#1235) Co-authored-by: bsian03 --- index.d.ts | 6 +++++- lib/Constants.js | 30 +++++++++++++++--------------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/index.d.ts b/index.d.ts index e31efdd97..15a54c233 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1254,6 +1254,8 @@ declare namespace Eris { UserFlags: { NONE: 0; DISCORD_EMPLOYEE: 1; + PARTNERED_SERVER_OWNER: 2; + /** @deprecated */ DISCORD_PARTNER: 2; HYPESQUAD_EVENTS: 4; BUG_HUNTER_LEVEL_1: 8; @@ -1265,8 +1267,10 @@ declare namespace Eris { SYSTEM: 4096; BUG_HUNTER_LEVEL_2: 16384; VERIFIED_BOT: 65536; + EARLY_VERIFIED_BOT_DEVELOPER: 131072; + /** @deprecated */ VERIFIED_BOT_DEVELOPER: 131072; - CERTIFIED_MODERATOR: 262144; + DISCORD_CERTIFIED_MODERATOR: 262144; }; VoiceOPCodes: { IDENTIFY: 0; diff --git a/lib/Constants.js b/lib/Constants.js index f955ba7f0..ef5fa9d8e 100644 --- a/lib/Constants.js +++ b/lib/Constants.js @@ -239,21 +239,21 @@ module.exports.ChannelTypes = { }; module.exports.UserFlags = { - NONE: 0, - DISCORD_EMPLOYEE: 1 << 0, - DISCORD_PARTNER: 1 << 1, - HYPESQUAD_EVENTS: 1 << 2, - BUG_HUNTER_LEVEL_1: 1 << 3, - HOUSE_BRAVERY: 1 << 6, - HOUSE_BRILLIANCE: 1 << 7, - HOUSE_BALANCE: 1 << 8, - EARLY_SUPPORTER: 1 << 9, - TEAM_USER: 1 << 10, - SYSTEM: 1 << 12, - BUG_HUNTER_LEVEL_2: 1 << 14, - VERIFIED_BOT: 1 << 16, - VERIFIED_BOT_DEVELOPER: 1 << 17, - CERTIFIED_MODERATOR: 1 << 18 + NONE: 0, + DISCORD_EMPLOYEE: 1 << 0, + PARTNERED_SERVER_OWNER: 1 << 1, DISCORD_PARTNER : 1 << 1, // [DEPRECATED] + HYPESQUAD_EVENTS: 1 << 2, + BUG_HUNTER_LEVEL_1: 1 << 3, + HOUSE_BRAVERY: 1 << 6, + HOUSE_BRILLIANCE: 1 << 7, + HOUSE_BALANCE: 1 << 8, + EARLY_SUPPORTER: 1 << 9, + TEAM_USER: 1 << 10, + SYSTEM: 1 << 12, + BUG_HUNTER_LEVEL_2: 1 << 14, + VERIFIED_BOT: 1 << 16, + EARLY_VERIFIED_BOT_DEVELOPER: 1 << 17, VERIFIED_BOT_DEVELOPER: 1 << 17, // [DEPRECATED] + DISCORD_CERTIFIED_MODERATOR: 1 << 18 };