feat: update Discord developer documentation links and add new flags
#9473 djs
This commit is contained in:
parent
3b793e80cd
commit
2bde69f8d1
@ -752,7 +752,7 @@ class WebSocketShard extends EventEmitter {
|
|||||||
/**
|
/**
|
||||||
* Adds a packet to the queue to be sent to the gateway.
|
* Adds a packet to the queue to be sent to the gateway.
|
||||||
* <warn>If you use this method, make sure you understand that you need to provide
|
* <warn>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.</warn>
|
* Do not use this method if you don't know what you're doing.</warn>
|
||||||
* @param {Object} data The full packet to send
|
* @param {Object} data The full packet to send
|
||||||
* @param {boolean} [important=false] If this packet should be added first in queue
|
* @param {boolean} [important=false] If this packet should be added first in queue
|
||||||
|
@ -27,7 +27,7 @@ class ActivityFlags extends BitField {}
|
|||||||
* * `PARTY_PRIVACY_VOICE_CHANNEL`
|
* * `PARTY_PRIVACY_VOICE_CHANNEL`
|
||||||
* * `EMBEDDED`
|
* * `EMBEDDED`
|
||||||
* @type {Object}
|
* @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 = {
|
ActivityFlags.FLAGS = {
|
||||||
INSTANCE: 1 << 0,
|
INSTANCE: 1 << 0,
|
||||||
|
@ -27,6 +27,7 @@ class ApplicationFlags extends BitField {}
|
|||||||
* * `MANAGED_EMOJI`
|
* * `MANAGED_EMOJI`
|
||||||
* * `GROUP_DM_CREATE`
|
* * `GROUP_DM_CREATE`
|
||||||
* * `RPC_PRIVATE_BETA`
|
* * `RPC_PRIVATE_BETA`
|
||||||
|
* * `APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE`
|
||||||
* * `ALLOW_ASSETS`
|
* * `ALLOW_ASSETS`
|
||||||
* * `ALLOW_ACTIVITY_ACTION_SPECTATE`
|
* * `ALLOW_ACTIVITY_ACTION_SPECTATE`
|
||||||
* * `ALLOW_ACTIVITY_ACTION_JOIN_REQUEST`
|
* * `ALLOW_ACTIVITY_ACTION_JOIN_REQUEST`
|
||||||
|
@ -620,7 +620,7 @@ exports.PartialTypes = keyMirror(['USER', 'CHANNEL', 'GUILD_MEMBER', 'MESSAGE',
|
|||||||
* * GUILD_SCHEDULED_EVENT_USER_REMOVE
|
* * GUILD_SCHEDULED_EVENT_USER_REMOVE
|
||||||
* * GUILD_AUDIT_LOG_ENTRY_CREATE
|
* * GUILD_AUDIT_LOG_ENTRY_CREATE
|
||||||
* @typedef {string} WSEventType
|
* @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([
|
exports.WSEvents = keyMirror([
|
||||||
'READY',
|
'READY',
|
||||||
|
@ -38,6 +38,8 @@ class SystemChannelFlags extends BitField {}
|
|||||||
* * `SUPPRESS_PREMIUM_SUBSCRIPTIONS` (Suppress server boost notifications)
|
* * `SUPPRESS_PREMIUM_SUBSCRIPTIONS` (Suppress server boost notifications)
|
||||||
* * `SUPPRESS_GUILD_REMINDER_NOTIFICATIONS` (Suppress server setup tips)
|
* * `SUPPRESS_GUILD_REMINDER_NOTIFICATIONS` (Suppress server setup tips)
|
||||||
* * `SUPPRESS_JOIN_NOTIFICATION_REPLIES` (Hide member join sticker reply buttons)
|
* * `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}
|
* @type {Object}
|
||||||
* @see {@link https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags}
|
* @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_PREMIUM_SUBSCRIPTIONS: 1 << 1,
|
||||||
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
|
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
|
||||||
SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
|
SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
|
||||||
|
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS: 1 << 4,
|
||||||
|
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5,
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = SystemChannelFlags;
|
module.exports = SystemChannelFlags;
|
||||||
|
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@ -7252,7 +7252,9 @@ export type SystemChannelFlagsString =
|
|||||||
| 'SUPPRESS_JOIN_NOTIFICATIONS'
|
| 'SUPPRESS_JOIN_NOTIFICATIONS'
|
||||||
| 'SUPPRESS_PREMIUM_SUBSCRIPTIONS'
|
| 'SUPPRESS_PREMIUM_SUBSCRIPTIONS'
|
||||||
| 'SUPPRESS_GUILD_REMINDER_NOTIFICATIONS'
|
| '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<SystemChannelFlagsString, number>;
|
export type SystemChannelFlagsResolvable = BitFieldResolvable<SystemChannelFlagsString, number>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user