mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 21:54:46 +12:00
feat: v13 VIEW_CREATOR_MONETIZATION_ANALYTICS
and USE_SOUNDBOARD
permissions (#9124)
* feat: view_creator_monetization_analytics perm * feat: also add USE_SOUNDBOARD
This commit is contained in:
parent
7cf9224c46
commit
28a5c7b125
2 changed files with 7 additions and 1 deletions
|
@ -108,6 +108,8 @@ class Permissions extends BitField {
|
|||
* * `SEND_MESSAGES_IN_THREADS`
|
||||
* * `START_EMBEDDED_ACTIVITIES`
|
||||
* * `MODERATE_MEMBERS`
|
||||
* * `VIEW_CREATOR_MONETIZATION_ANALYTICS`
|
||||
* * `USE_SOUNDBOARD`
|
||||
* @type {Object<string, bigint>}
|
||||
* @see {@link https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags}
|
||||
*/
|
||||
|
@ -156,6 +158,8 @@ Permissions.FLAGS = {
|
|||
SEND_MESSAGES_IN_THREADS: 1n << 38n,
|
||||
START_EMBEDDED_ACTIVITIES: 1n << 39n,
|
||||
MODERATE_MEMBERS: 1n << 40n,
|
||||
VIEW_CREATOR_MONETIZATION_ANALYTICS: 1n << 41n,
|
||||
USE_SOUNDBOARD: 1n << 42n,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
|
@ -6016,7 +6016,9 @@ export type PermissionString =
|
|||
| 'SEND_MESSAGES_IN_THREADS'
|
||||
| 'START_EMBEDDED_ACTIVITIES'
|
||||
| 'MODERATE_MEMBERS'
|
||||
| 'MANAGE_EVENTS';
|
||||
| 'MANAGE_EVENTS'
|
||||
| 'VIEW_CREATOR_MONETIZATION_ANALYTICS'
|
||||
| 'USE_SOUNDBOARD';
|
||||
|
||||
export type RecursiveArray<T> = ReadonlyArray<T | RecursiveArray<T>>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue