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:
Jaw0r3k 2023-04-14 23:33:56 +02:00 committed by GitHub
parent 7cf9224c46
commit 28a5c7b125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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
View file

@ -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>>;