Skip to content

Commit a8b9d0b

Browse files
committed
Add PIN_MESSAGES and BYPASS_SLOWMODE
1 parent a4519b0 commit a8b9d0b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/Constants.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ export namespace Permissions {
566566
export const SET_VOICE_CHANNEL_STATUS = 281474976710656n; // 1 << 48
567567
export const SEND_POLLS = 562949953421312n; // 1 << 49
568568
export const USE_EXTERNAL_APPS = 1125899906842624n; // 1 << 50
569+
export const PIN_MESSAGES = 2251799813685248n; // 1 << 51
570+
export const BYPASS_SLOWMODE = 4503599627370496n; // 1 << 52
569571
}
570572

571573
// bigints can't be used as object keys, so we need to convert them to strings
@@ -596,7 +598,9 @@ export const TextPermissions = [
596598
Permissions.SEND_VOICE_MESSAGES,
597599
Permissions.USE_CLYDE_AI,
598600
Permissions.SEND_POLLS,
599-
Permissions.USE_EXTERNAL_APPS
601+
Permissions.USE_EXTERNAL_APPS,
602+
Permissions.PIN_MESSAGES,
603+
Permissions.BYPASS_SLOWMODE
600604
] as const;
601605
export const AllTextPermissions = TextPermissions.reduce((all, p) => all | p, 0n);
602606
export const AllTextPermissionNames = TextPermissions.map(p => PermissionValueToName[String(p) as `${typeof p}`]);
@@ -634,7 +638,8 @@ export const VoicePermissions = [
634638
Permissions.USE_CLYDE_AI,
635639
Permissions.SET_VOICE_CHANNEL_STATUS,
636640
Permissions.SEND_POLLS,
637-
Permissions.USE_EXTERNAL_APPS
641+
Permissions.USE_EXTERNAL_APPS,
642+
Permissions.BYPASS_SLOWMODE
638643
] as const;
639644
export const AllVoicePermissions = VoicePermissions.reduce((all, p) => all | p, 0n);
640645
export const AllVoicePermissionNames = VoicePermissions.map(p => PermissionValueToName[String(p) as `${typeof p}`]);
@@ -665,7 +670,8 @@ export const StagePermissions = [
665670
Permissions.SEND_VOICE_MESSAGES,
666671
Permissions.USE_CLYDE_AI,
667672
Permissions.SEND_POLLS,
668-
Permissions.USE_EXTERNAL_APPS
673+
Permissions.USE_EXTERNAL_APPS,
674+
Permissions.BYPASS_SLOWMODE
669675
] as const;
670676
export const AllStagePermissions = StagePermissions.reduce((all, p) => all | p, 0n);
671677
export const AllStagePermissionNames = StagePermissions.map(p => PermissionValueToName[String(p) as `${typeof p}`]);

0 commit comments

Comments
 (0)