refactor(PermissionFlagsBits): update permissions (#737)

Co-authored-by: advaith <advaithj1@gmail.com>
This commit is contained in:
Almeida
2023-04-13 16:50:08 +01:00
committed by GitHub
parent e647e795c9
commit cfedc17338
2 changed files with 20 additions and 0 deletions

View File

@@ -38,7 +38,11 @@ export const PermissionFlagsBits = {
ManageNicknames: 1n << 27n,
ManageRoles: 1n << 28n,
ManageWebhooks: 1n << 29n,
/**
* @deprecated This is the old name for {@apilink PermissionFlagsBits#ManageGuildExpressions}
*/
ManageEmojisAndStickers: 1n << 30n,
ManageGuildExpressions: 1n << 30n,
UseApplicationCommands: 1n << 31n,
RequestToSpeak: 1n << 32n,
ManageEvents: 1n << 33n,
@@ -49,6 +53,12 @@ export const PermissionFlagsBits = {
SendMessagesInThreads: 1n << 38n,
UseEmbeddedActivities: 1n << 39n,
ModerateMembers: 1n << 40n,
ViewCreatorMonetizationAnalytics: 1n << 41n,
UseSoundboard: 1n << 42n,
/**
* @unstable This permission flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
UseExternalSounds: 1n << 45n,
} as const;
/**

View File

@@ -38,7 +38,11 @@ export const PermissionFlagsBits = {
ManageNicknames: 1n << 27n,
ManageRoles: 1n << 28n,
ManageWebhooks: 1n << 29n,
/**
* @deprecated This is the old name for {@apilink PermissionFlagsBits#ManageGuildExpressions}
*/
ManageEmojisAndStickers: 1n << 30n,
ManageGuildExpressions: 1n << 30n,
UseApplicationCommands: 1n << 31n,
RequestToSpeak: 1n << 32n,
ManageEvents: 1n << 33n,
@@ -49,6 +53,12 @@ export const PermissionFlagsBits = {
SendMessagesInThreads: 1n << 38n,
UseEmbeddedActivities: 1n << 39n,
ModerateMembers: 1n << 40n,
ViewCreatorMonetizationAnalytics: 1n << 41n,
UseSoundboard: 1n << 42n,
/**
* @unstable This permission flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
UseExternalSounds: 1n << 45n,
} as const;
/**