diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index f380018..33d6d3d 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -752,7 +752,7 @@ class WebSocketShard extends EventEmitter { /** * Adds a packet to the queue to be sent to the gateway. * If you use this method, make sure you understand that you need to provide - * a full [Payload](https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-commands). + * a full [Payload](https://discord.com/developers/docs/topics/gateway-events#payload-structure). * Do not use this method if you don't know what you're doing. * @param {Object} data The full packet to send * @param {boolean} [important=false] If this packet should be added first in queue diff --git a/src/util/ActivityFlags.js b/src/util/ActivityFlags.js index e874ed2..6d55621 100644 --- a/src/util/ActivityFlags.js +++ b/src/util/ActivityFlags.js @@ -27,7 +27,7 @@ class ActivityFlags extends BitField {} * * `PARTY_PRIVACY_VOICE_CHANNEL` * * `EMBEDDED` * @type {Object} - * @see {@link https://discord.com/developers/docs/topics/gateway#activity-object-activity-flags} + * @see {@link https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-flags} */ ActivityFlags.FLAGS = { INSTANCE: 1 << 0, diff --git a/src/util/ApplicationFlags.js b/src/util/ApplicationFlags.js index d1a3761..2991e6f 100644 --- a/src/util/ApplicationFlags.js +++ b/src/util/ApplicationFlags.js @@ -27,6 +27,7 @@ class ApplicationFlags extends BitField {} * * `MANAGED_EMOJI` * * `GROUP_DM_CREATE` * * `RPC_PRIVATE_BETA` + * * `APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE` * * `ALLOW_ASSETS` * * `ALLOW_ACTIVITY_ACTION_SPECTATE` * * `ALLOW_ACTIVITY_ACTION_JOIN_REQUEST` diff --git a/src/util/Constants.js b/src/util/Constants.js index 0be13f6..2b71a64 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -620,7 +620,7 @@ exports.PartialTypes = keyMirror(['USER', 'CHANNEL', 'GUILD_MEMBER', 'MESSAGE', * * GUILD_SCHEDULED_EVENT_USER_REMOVE * * GUILD_AUDIT_LOG_ENTRY_CREATE * @typedef {string} WSEventType - * @see {@link https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events} + * @see {@link https://discord.com/developers/docs/topics/gateway-events#receive-events} */ exports.WSEvents = keyMirror([ 'READY', diff --git a/src/util/SystemChannelFlags.js b/src/util/SystemChannelFlags.js index bf5a56a..110fdca 100644 --- a/src/util/SystemChannelFlags.js +++ b/src/util/SystemChannelFlags.js @@ -38,6 +38,8 @@ class SystemChannelFlags extends BitField {} * * `SUPPRESS_PREMIUM_SUBSCRIPTIONS` (Suppress server boost notifications) * * `SUPPRESS_GUILD_REMINDER_NOTIFICATIONS` (Suppress server setup tips) * * `SUPPRESS_JOIN_NOTIFICATION_REPLIES` (Hide member join sticker reply buttons) + * * `SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS` (Suppress role subscription purchase and renewal notifications) + * * `SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES` (HHide role subscription sticker reply buttons) * @type {Object} * @see {@link https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags} */ @@ -46,6 +48,8 @@ SystemChannelFlags.FLAGS = { SUPPRESS_PREMIUM_SUBSCRIPTIONS: 1 << 1, SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2, SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3, + SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS: 1 << 4, + SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5, }; module.exports = SystemChannelFlags; diff --git a/typings/index.d.ts b/typings/index.d.ts index 2d79358..e84f8a7 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -7252,7 +7252,9 @@ export type SystemChannelFlagsString = | 'SUPPRESS_JOIN_NOTIFICATIONS' | 'SUPPRESS_PREMIUM_SUBSCRIPTIONS' | 'SUPPRESS_GUILD_REMINDER_NOTIFICATIONS' - | 'SUPPRESS_JOIN_NOTIFICATION_REPLIES'; + | 'SUPPRESS_JOIN_NOTIFICATION_REPLIES' + | 'SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS' + | 'SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES'; export type SystemChannelFlagsResolvable = BitFieldResolvable;