Skip to content

Commit

Permalink
feat: v13 VIEW_CREATOR_MONETIZATION_ANALYTICS and USE_SOUNDBOARD
Browse files Browse the repository at this point in the history
…permissions (#9124)

* feat: view_creator_monetization_analytics perm

* feat: also add USE_SOUNDBOARD
  • Loading branch information
jaw0r3k committed Apr 14, 2023
1 parent 7cf9224 commit 28a5c7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/util/Permissions.js
Expand Up @@ -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}
*/
Expand Down Expand Up @@ -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,
};

/**
Expand Down
4 changes: 3 additions & 1 deletion typings/index.d.ts
Expand Up @@ -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>>;

Expand Down

0 comments on commit 28a5c7b

Please sign in to comment.