mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01: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:
@@ -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>>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user