mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-01 00:10:09 +00:00
refactor(PermissionFlagsBits): update permissions (#737)
Co-authored-by: advaith <advaithj1@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user