mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
feat(Permissions): Adds VIEW_GUILD_INSIGHTS (#3928)
This commit is contained in:
@@ -67,6 +67,7 @@ class Permissions extends BitField {
|
|||||||
* * `READ_MESSAGE_HISTORY` (view messages that were posted prior to opening Discord)
|
* * `READ_MESSAGE_HISTORY` (view messages that were posted prior to opening Discord)
|
||||||
* * `MENTION_EVERYONE`
|
* * `MENTION_EVERYONE`
|
||||||
* * `USE_EXTERNAL_EMOJIS` (use emojis from different guilds)
|
* * `USE_EXTERNAL_EMOJIS` (use emojis from different guilds)
|
||||||
|
* * `VIEW_GUILD_INSIGHTS`
|
||||||
* * `CONNECT` (connect to a voice channel)
|
* * `CONNECT` (connect to a voice channel)
|
||||||
* * `SPEAK` (speak in a voice channel)
|
* * `SPEAK` (speak in a voice channel)
|
||||||
* * `MUTE_MEMBERS` (mute members across all voice channels)
|
* * `MUTE_MEMBERS` (mute members across all voice channels)
|
||||||
@@ -101,14 +102,13 @@ Permissions.FLAGS = {
|
|||||||
READ_MESSAGE_HISTORY: 1 << 16,
|
READ_MESSAGE_HISTORY: 1 << 16,
|
||||||
MENTION_EVERYONE: 1 << 17,
|
MENTION_EVERYONE: 1 << 17,
|
||||||
USE_EXTERNAL_EMOJIS: 1 << 18,
|
USE_EXTERNAL_EMOJIS: 1 << 18,
|
||||||
|
VIEW_GUILD_INSIGHTS: 1 << 19,
|
||||||
CONNECT: 1 << 20,
|
CONNECT: 1 << 20,
|
||||||
SPEAK: 1 << 21,
|
SPEAK: 1 << 21,
|
||||||
MUTE_MEMBERS: 1 << 22,
|
MUTE_MEMBERS: 1 << 22,
|
||||||
DEAFEN_MEMBERS: 1 << 23,
|
DEAFEN_MEMBERS: 1 << 23,
|
||||||
MOVE_MEMBERS: 1 << 24,
|
MOVE_MEMBERS: 1 << 24,
|
||||||
USE_VAD: 1 << 25,
|
USE_VAD: 1 << 25,
|
||||||
|
|
||||||
CHANGE_NICKNAME: 1 << 26,
|
CHANGE_NICKNAME: 1 << 26,
|
||||||
MANAGE_NICKNAMES: 1 << 27,
|
MANAGE_NICKNAMES: 1 << 27,
|
||||||
MANAGE_ROLES: 1 << 28,
|
MANAGE_ROLES: 1 << 28,
|
||||||
|
|||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -2726,6 +2726,7 @@ declare module 'discord.js' {
|
|||||||
| 'READ_MESSAGE_HISTORY'
|
| 'READ_MESSAGE_HISTORY'
|
||||||
| 'MENTION_EVERYONE'
|
| 'MENTION_EVERYONE'
|
||||||
| 'USE_EXTERNAL_EMOJIS'
|
| 'USE_EXTERNAL_EMOJIS'
|
||||||
|
| 'VIEW_GUILD_INSIGHTS'
|
||||||
| 'CONNECT'
|
| 'CONNECT'
|
||||||
| 'SPEAK'
|
| 'SPEAK'
|
||||||
| 'MUTE_MEMBERS'
|
| 'MUTE_MEMBERS'
|
||||||
|
|||||||
Reference in New Issue
Block a user