seyfert 4.4.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/lib/api/Routes/guilds.d.ts +12 -1
- package/lib/api/Routes/index.d.ts +3 -1
- package/lib/api/Routes/invites.d.ts +1 -1
- package/lib/api/Routes/oauth2.d.ts +11 -0
- package/lib/api/Routes/oauth2.js +2 -0
- package/lib/api/Routes/skus.d.ts +11 -4
- package/lib/api/Routes/users.d.ts +2 -1
- package/lib/api/Routes/voice.d.ts +4 -0
- package/lib/api/Routes/webhooks.d.ts +1 -1
- package/lib/api/api.d.ts +15 -5
- package/lib/api/api.js +243 -114
- package/lib/api/bucket.js +13 -7
- package/lib/api/shared.d.ts +3 -1
- package/lib/api/utils/constants.d.ts +1 -1
- package/lib/api/utils/constants.js +1 -1
- package/lib/builders/Attachment.d.ts +6 -1
- package/lib/builders/Attachment.js +13 -9
- package/lib/builders/CheckboxGroup.js +1 -1
- package/lib/builders/FileUpload.d.ts +8 -1
- package/lib/builders/FileUpload.js +9 -0
- package/lib/builders/RadioGroup.js +1 -1
- package/lib/client/base.d.ts +3 -3
- package/lib/client/client.d.ts +1 -1
- package/lib/client/client.js +5 -4
- package/lib/client/collectors.d.ts +10 -8
- package/lib/client/transformers.d.ts +5 -0
- package/lib/client/workerclient.d.ts +8 -1
- package/lib/client/workerclient.js +34 -14
- package/lib/commands/applications/chat.d.ts +6 -4
- package/lib/commands/applications/options.d.ts +6 -4
- package/lib/commands/applications/shared.d.ts +2 -2
- package/lib/commands/handle.d.ts +7 -3
- package/lib/commands/handle.js +36 -11
- package/lib/commands/handler.js +11 -0
- package/lib/commands/optionresolver.d.ts +6 -7
- package/lib/common/it/error.d.ts +13 -0
- package/lib/common/it/error.js +15 -1
- package/lib/common/it/logger.js +12 -9
- package/lib/common/shorters/application.d.ts +1 -1
- package/lib/common/shorters/application.js +1 -1
- package/lib/common/shorters/bans.js +1 -1
- package/lib/common/shorters/guilds.js +5 -1
- package/lib/common/shorters/interaction.js +7 -4
- package/lib/common/shorters/invites.d.ts +5 -0
- package/lib/common/shorters/members.js +2 -1
- package/lib/common/shorters/messages.js +2 -2
- package/lib/common/shorters/threads.js +1 -1
- package/lib/common/shorters/webhook.js +3 -3
- package/lib/common/types/util.d.ts +7 -0
- package/lib/components/componentcommand.js +2 -2
- package/lib/components/customId.d.ts +3 -0
- package/lib/components/customId.js +11 -0
- package/lib/components/handler.js +2 -3
- package/lib/components/modalcommand.js +2 -2
- package/lib/events/hooks/invite.d.ts +1 -0
- package/lib/events/hooks/presence.d.ts +1 -0
- package/lib/events/hooks/thread.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/structures/AnonymousGuild.d.ts +1 -1
- package/lib/structures/AnonymousGuild.js +1 -1
- package/lib/structures/Guild.d.ts +3 -0
- package/lib/structures/GuildMember.d.ts +2 -2
- package/lib/structures/GuildMember.js +22 -4
- package/lib/structures/GuildPreview.d.ts +1 -1
- package/lib/structures/GuildPreview.js +1 -1
- package/lib/structures/GuildRole.d.ts +13 -0
- package/lib/structures/GuildRole.js +21 -0
- package/lib/structures/GuildTemplate.js +1 -1
- package/lib/structures/Interaction.d.ts +7 -7
- package/lib/structures/Interaction.js +35 -21
- package/lib/structures/Message.d.ts +2 -1
- package/lib/structures/channels.d.ts +29 -16
- package/lib/structures/channels.js +59 -19
- package/lib/structures/extra/BaseGuild.d.ts +4 -4
- package/lib/structures/extra/BaseGuild.js +4 -4
- package/lib/types/gateway.d.ts +243 -239
- package/lib/types/index.d.ts +2 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.d.ts +5 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.d.ts +2 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.js +1 -1
- package/lib/types/payloads/_interactions/_applicationCommands/chatInput.d.ts +7 -7
- package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.d.ts +13 -13
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.d.ts +4 -4
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.js +2 -2
- package/lib/types/payloads/_interactions/applicationCommands.d.ts +10 -10
- package/lib/types/payloads/_interactions/applicationCommands.js +4 -4
- package/lib/types/payloads/_interactions/autocomplete.d.ts +2 -2
- package/lib/types/payloads/_interactions/base.d.ts +13 -7
- package/lib/types/payloads/_interactions/modalSubmit.d.ts +4 -4
- package/lib/types/payloads/_interactions/responses.d.ts +10 -10
- package/lib/types/payloads/_interactions/responses.js +2 -2
- package/lib/types/payloads/application.d.ts +21 -15
- package/lib/types/payloads/application.js +7 -7
- package/lib/types/payloads/auditLog.d.ts +22 -17
- package/lib/types/payloads/auditLog.js +7 -2
- package/lib/types/payloads/autoModeration.d.ts +11 -11
- package/lib/types/payloads/autoModeration.js +5 -5
- package/lib/types/payloads/channel.d.ts +87 -78
- package/lib/types/payloads/channel.js +16 -11
- package/lib/types/payloads/components.d.ts +41 -31
- package/lib/types/payloads/components.js +9 -5
- package/lib/types/payloads/emoji.d.ts +2 -2
- package/lib/types/payloads/emoji.js +1 -1
- package/lib/types/payloads/gateway.d.ts +33 -29
- package/lib/types/payloads/gateway.js +5 -5
- package/lib/types/payloads/guild.d.ts +68 -68
- package/lib/types/payloads/guild.js +14 -14
- package/lib/types/payloads/guildScheduledEvent.d.ts +11 -11
- package/lib/types/payloads/guildScheduledEvent.js +3 -3
- package/lib/types/payloads/index.d.ts +2 -2
- package/lib/types/payloads/interactions.d.ts +3 -3
- package/lib/types/payloads/invite.d.ts +11 -11
- package/lib/types/payloads/invite.js +3 -3
- package/lib/types/payloads/monetization.d.ts +4 -4
- package/lib/types/payloads/monetization.js +2 -2
- package/lib/types/payloads/oauth2.d.ts +21 -17
- package/lib/types/payloads/oauth2.js +21 -17
- package/lib/types/payloads/permissions.d.ts +5 -5
- package/lib/types/payloads/permissions.js +2 -2
- package/lib/types/payloads/poll.d.ts +7 -7
- package/lib/types/payloads/poll.js +2 -2
- package/lib/types/payloads/soundboard.d.ts +2 -2
- package/lib/types/payloads/soundboard.js +1 -1
- package/lib/types/payloads/stageInstance.d.ts +5 -5
- package/lib/types/payloads/stageInstance.js +1 -1
- package/lib/types/payloads/sticker.d.ts +8 -8
- package/lib/types/payloads/sticker.js +3 -3
- package/lib/types/payloads/teams.d.ts +8 -8
- package/lib/types/payloads/teams.js +3 -3
- package/lib/types/payloads/template.d.ts +3 -3
- package/lib/types/payloads/template.js +1 -1
- package/lib/types/payloads/user.d.ts +24 -22
- package/lib/types/payloads/user.js +7 -5
- package/lib/types/payloads/voice.d.ts +4 -4
- package/lib/types/payloads/voice.js +1 -1
- package/lib/types/payloads/webhokEvents.d.ts +5 -5
- package/lib/types/payloads/webhokEvents.js +2 -2
- package/lib/types/payloads/webhook.d.ts +4 -4
- package/lib/types/payloads/webhook.js +1 -1
- package/lib/types/rest/application.d.ts +14 -14
- package/lib/types/rest/auditLog.d.ts +1 -1
- package/lib/types/rest/autoModeration.d.ts +7 -7
- package/lib/types/rest/channel.d.ts +79 -74
- package/lib/types/rest/channel.js +1 -1
- package/lib/types/rest/emoji.d.ts +8 -8
- package/lib/types/rest/gateway.d.ts +2 -2
- package/lib/types/rest/guild.d.ts +98 -98
- package/lib/types/rest/guild.js +5 -5
- package/lib/types/rest/guildScheduledEvent.d.ts +11 -11
- package/lib/types/rest/index.d.ts +34 -3
- package/lib/types/rest/index.js +33 -2
- package/lib/types/rest/interactions.d.ts +48 -48
- package/lib/types/rest/invite.d.ts +5 -5
- package/lib/types/rest/monetization.d.ts +9 -9
- package/lib/types/rest/monetization.js +1 -1
- package/lib/types/rest/oauth2.d.ts +22 -18
- package/lib/types/rest/poll.d.ts +4 -4
- package/lib/types/rest/soundboard.d.ts +8 -8
- package/lib/types/rest/stageInstance.d.ts +6 -6
- package/lib/types/rest/sticker.d.ts +10 -10
- package/lib/types/rest/template.d.ts +11 -11
- package/lib/types/rest/user.d.ts +18 -14
- package/lib/types/rest/voice.d.ts +5 -5
- package/lib/types/rest/webhook.d.ts +38 -38
- package/lib/types/utils/index.d.ts +19 -19
- package/lib/types/utils/index.js +19 -19
- package/lib/websocket/SharedTypes.d.ts +2 -2
- package/lib/websocket/constants/index.js +2 -2
- package/lib/websocket/discord/heartbeater.d.ts +1 -0
- package/lib/websocket/discord/heartbeater.js +8 -0
- package/lib/websocket/discord/shard.d.ts +19 -10
- package/lib/websocket/discord/shard.js +255 -122
- package/lib/websocket/discord/sharder.d.ts +2 -2
- package/lib/websocket/discord/sharder.js +2 -2
- package/lib/websocket/discord/shared.d.ts +7 -2
- package/lib/websocket/discord/workermanager.d.ts +3 -1
- package/lib/websocket/discord/workermanager.js +31 -24
- package/package.json +3 -3
package/lib/types/gateway.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { OmitInsert } from '../common';
|
|
2
2
|
import type { ChannelType, GatewayDispatchEvents, GatewayOpcodes, Snowflake } from './index';
|
|
3
3
|
import type { GatewayPresenceUpdate } from './payloads/gateway';
|
|
4
|
-
import type { APIApplication, APIApplicationCommandPermission, APIAuditLogEntry, APIAutoModerationAction, APIAutoModerationRule, APIChannel, APIEmoji, APIEntitlement, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildScheduledEvent, APIInteraction, APIMessage, APIPartialEmoji, APIRole, APIStageInstance, APISticker, APISubscription, APIThreadChannel, APIThreadMember, APIUnavailableGuild, APIUser, APIVoiceState, AutoModerationRuleTriggerType, GatewayActivity, InviteTargetType, PresenceUpdateStatus, GatewayPresenceUpdate as RawGatewayPresenceUpdate, GatewayThreadListSync as RawGatewayThreadListSync, GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate } from './payloads/index';
|
|
4
|
+
import type { APIApplication, APIApplicationCommandPermission, APIAuditLogEntry, APIAutoModerationAction, APIAutoModerationRule, APIChannel, APIEmoji, APIEntitlement, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildScheduledEvent, APIInteraction, APIMessage, APIPartialEmoji, APIRole, APIStageInstance, APISticker, APISubscription, APIThreadChannel, APIThreadMember, APIUnavailableGuild, APIUser, APIVoiceState, AutoModerationRuleTriggerType, GatewayActivity, InviteTargetType, PresenceUpdateStatus, GatewayPresenceUpdate as RawGatewayPresenceUpdate, GatewayThreadListSync as RawGatewayThreadListSync, GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate, TextChannelType } from './payloads/index';
|
|
5
5
|
import type { APISoundboardSound } from './payloads/soundboard';
|
|
6
6
|
import type { ReactionType } from './rest/index';
|
|
7
7
|
import type { AnimationTypes, Nullable } from './utils';
|
|
8
8
|
/**
|
|
9
|
-
* https://discord.com/developers/
|
|
9
|
+
* https://docs.discord.com/developers/topics/gateway#connecting-gateway-url-query-string-params
|
|
10
10
|
*/
|
|
11
11
|
export interface GatewayURLQuery {
|
|
12
12
|
v: string;
|
|
@@ -14,20 +14,20 @@ export interface GatewayURLQuery {
|
|
|
14
14
|
compress?: 'zlib-stream';
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Types extracted from https://discord.com/developers/
|
|
17
|
+
* Types extracted from https://docs.discord.com/developers/topics/gateway
|
|
18
18
|
*/
|
|
19
19
|
export type GatewaySendPayload = GatewayHeartbeat | GatewayIdentify | GatewayRequestGuildMembers | GatewayResume | GatewayUpdatePresence | GatewayVoiceStateUpdate | GatewayRequestSoundboardSounds | GatewayRequestChannelInfo;
|
|
20
20
|
export type GatewayReceivePayload = GatewayDispatchPayload | GatewayHeartbeatAck | GatewayHeartbeatRequest | GatewayHello | GatewayInvalidSession | GatewayReconnect;
|
|
21
21
|
export type GatewayDispatchPayload = GatewayApplicationCommandPermissionsUpdateDispatch | GatewayAutoModerationActionExecutionDispatch | GatewayAutoModerationRuleCreateDispatch | GatewayAutoModerationRuleDeleteDispatch | GatewayAutoModerationRuleModifyDispatch | GatewayChannelModifyDispatch | GatewayChannelPinsUpdateDispatch | GatewayEntitlementModifyDispatch | GatewayGuildAuditLogEntryCreateDispatch | GatewayGuildBanModifyDispatch | GatewayGuildCreateDispatch | GatewayRawGuildCreateDispatch | GatewayGuildDeleteDispatch | GatewayRawGuildDeleteDispatch | GatewayGuildsReadyDispatch | GatewayGuildEmojisUpdateDispatch | GatewayGuildIntegrationsUpdateDispatch | GatewayGuildMemberAddDispatch | GatewayGuildMemberRemoveDispatch | GatewayGuildMembersChunkDispatch | GatewayGuildMemberUpdateDispatch | GatewayGuildModifyDispatch | GatewayGuildRoleDeleteDispatch | GatewayGuildRoleModifyDispatch | GatewayGuildScheduledEventCreateDispatch | GatewayGuildScheduledEventDeleteDispatch | GatewayGuildScheduledEventUpdateDispatch | GatewayGuildScheduledEventUserAddDispatch | GatewayGuildScheduledEventUserRemoveDispatch | GatewayGuildStickersUpdateDispatch | GatewayIntegrationCreateDispatch | GatewayIntegrationDeleteDispatch | GatewayIntegrationUpdateDispatch | GatewayInteractionCreateDispatch | GatewayInviteCreateDispatch | GatewayInviteDeleteDispatch | GatewayMessageCreateDispatch | GatewayMessageDeleteBulkDispatch | GatewayMessageDeleteDispatch | GatewayMessagePollVoteAddDispatch | GatewayMessagePollVoteRemoveDispatch | GatewayMessageReactionAddDispatch | GatewayMessageReactionRemoveAllDispatch | GatewayMessageReactionRemoveDispatch | GatewayMessageReactionRemoveEmojiDispatch | GatewayMessageUpdateDispatch | GatewayPresenceUpdateDispatch | GatewayReadyDispatch | GatewayResumedDispatch | GatewayStageInstanceCreateDispatch | GatewayStageInstanceDeleteDispatch | GatewayStageInstanceUpdateDispatch | GatewayThreadCreateDispatch | GatewayThreadDeleteDispatch | GatewayThreadListSyncDispatch | GatewayThreadMembersUpdateDispatch | GatewayThreadMemberUpdateDispatch | GatewayThreadUpdateDispatch | GatewayTypingStartDispatch | GatewayUserUpdateDispatch | GatewayVoiceChannelStartTimeUpdateDispatch | GatewayVoiceChannelStatusUpdateDispatch | GatewayVoiceServerUpdateDispatch | GatewayVoiceStateUpdateDispatch | GatewayChannelInfoDispatch | GatewayWebhooksUpdateDispatch | GatewayGuildSoundboardSoundCreateDispatch | GatewayGuildSoundboardSoundDeleteDispatch | GatewayGuildSoundboardSoundUpdateDispatch | GatewayGuildSoundboardSoundsUpdateDispatch | GatewaySoundboardSoundsDispatch | GatewayRateLimitedDispatch;
|
|
22
22
|
/**
|
|
23
|
-
* https://discord.com/developers/
|
|
23
|
+
* https://docs.discord.com/developers/topics/gateway-events#hello
|
|
24
24
|
*/
|
|
25
25
|
export interface GatewayHello extends NonDispatchPayload {
|
|
26
26
|
op: GatewayOpcodes.Hello;
|
|
27
27
|
d: GatewayHelloData;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* https://discord.com/developers/
|
|
30
|
+
* https://docs.discord.com/developers/topics/gateway-events#hello
|
|
31
31
|
*/
|
|
32
32
|
export interface GatewayHelloData {
|
|
33
33
|
/**
|
|
@@ -36,39 +36,39 @@ export interface GatewayHelloData {
|
|
|
36
36
|
heartbeat_interval: number;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* https://discord.com/developers/
|
|
39
|
+
* https://docs.discord.com/developers/topics/gateway#sending-heartbeats
|
|
40
40
|
*/
|
|
41
41
|
export interface GatewayHeartbeatRequest extends NonDispatchPayload {
|
|
42
42
|
op: GatewayOpcodes.Heartbeat;
|
|
43
43
|
d: never;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
* https://discord.com/developers/
|
|
46
|
+
* https://docs.discord.com/developers/topics/gateway-events#heartbeat
|
|
47
47
|
*/
|
|
48
48
|
export interface GatewayHeartbeatAck extends NonDispatchPayload {
|
|
49
49
|
op: GatewayOpcodes.HeartbeatAck;
|
|
50
50
|
d: never;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* https://discord.com/developers/
|
|
53
|
+
* https://docs.discord.com/developers/topics/gateway-events#invalid-session
|
|
54
54
|
*/
|
|
55
55
|
export interface GatewayInvalidSession extends NonDispatchPayload {
|
|
56
56
|
op: GatewayOpcodes.InvalidSession;
|
|
57
57
|
d: GatewayInvalidSessionData;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* https://discord.com/developers/
|
|
60
|
+
* https://docs.discord.com/developers/topics/gateway-events#invalid-session
|
|
61
61
|
*/
|
|
62
62
|
export type GatewayInvalidSessionData = boolean;
|
|
63
63
|
/**
|
|
64
|
-
* https://discord.com/developers/
|
|
64
|
+
* https://docs.discord.com/developers/topics/gateway-events#reconnect
|
|
65
65
|
*/
|
|
66
66
|
export interface GatewayReconnect extends NonDispatchPayload {
|
|
67
67
|
op: GatewayOpcodes.Reconnect;
|
|
68
68
|
d: never;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* https://discord.com/developers/
|
|
71
|
+
* https://docs.discord.com/developers/events/gateway-events#rate-limited
|
|
72
72
|
*/
|
|
73
73
|
export type GatewayRateLimitedDispatch = DataPayload<GatewayDispatchEvents.RateLimited, GatewayRateLimitedDispatchData>;
|
|
74
74
|
export interface GatewayRateLimitedDispatchData {
|
|
@@ -86,7 +86,7 @@ export interface GatewayRateLimitedDispatchData {
|
|
|
86
86
|
meta: GatewayRateLimitedMetadata;
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* https://discord.com/developers/
|
|
89
|
+
* https://docs.discord.com/developers/events/gateway-events#rate-limited-request-guild-member-rate-limit-metadata-structure
|
|
90
90
|
*/
|
|
91
91
|
export interface GatewayRateLimitedMetadata {
|
|
92
92
|
/**
|
|
@@ -99,29 +99,29 @@ export interface GatewayRateLimitedMetadata {
|
|
|
99
99
|
nonce?: string;
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
* https://discord.com/developers/
|
|
102
|
+
* https://docs.discord.com/developers/topics/gateway-events#ready
|
|
103
103
|
*/
|
|
104
104
|
export type GatewayReadyDispatch = DataPayload<GatewayDispatchEvents.Ready, GatewayReadyDispatchData>;
|
|
105
105
|
/**
|
|
106
|
-
* https://discord.com/developers/
|
|
106
|
+
* https://docs.discord.com/developers/topics/gateway-events#ready
|
|
107
107
|
*/
|
|
108
108
|
export interface GatewayReadyDispatchData {
|
|
109
109
|
/**
|
|
110
110
|
* Gateway version
|
|
111
111
|
*
|
|
112
|
-
* See https://discord.com/developers/
|
|
112
|
+
* See https://docs.discord.com/developers/reference#api-versioning
|
|
113
113
|
*/
|
|
114
114
|
v: number;
|
|
115
115
|
/**
|
|
116
116
|
* Information about the user including email
|
|
117
117
|
*
|
|
118
|
-
* See https://discord.com/developers/
|
|
118
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
119
119
|
*/
|
|
120
120
|
user: APIUser;
|
|
121
121
|
/**
|
|
122
122
|
* The guilds the user is in
|
|
123
123
|
*
|
|
124
|
-
* See https://discord.com/developers/
|
|
124
|
+
* See https://docs.discord.com/developers/resources/guild#unavailable-guild-object
|
|
125
125
|
*/
|
|
126
126
|
guilds: APIUnavailableGuild[];
|
|
127
127
|
/**
|
|
@@ -135,62 +135,62 @@ export interface GatewayReadyDispatchData {
|
|
|
135
135
|
/**
|
|
136
136
|
* The shard information associated with this session, if sent when identifying
|
|
137
137
|
*
|
|
138
|
-
* See https://discord.com/developers/
|
|
138
|
+
* See https://docs.discord.com/developers/topics/gateway#sharding
|
|
139
139
|
*/
|
|
140
140
|
shard?: [shard_id: number, shard_count: number];
|
|
141
141
|
/**
|
|
142
142
|
* Contains `id` and `flags`
|
|
143
143
|
*
|
|
144
|
-
* See https://discord.com/developers/
|
|
144
|
+
* See https://docs.discord.com/developers/resources/application#application-object
|
|
145
145
|
*/
|
|
146
146
|
application: Pick<APIApplication, 'flags' | 'id'>;
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* https://discord.com/developers/
|
|
149
|
+
* https://docs.discord.com/developers/topics/gateway-events#resumed
|
|
150
150
|
*/
|
|
151
151
|
export type GatewayResumedDispatch = DataPayload<GatewayDispatchEvents.Resumed, never>;
|
|
152
152
|
/**
|
|
153
|
-
* https://discord.com/developers/
|
|
154
|
-
* https://discord.com/developers/
|
|
155
|
-
* https://discord.com/developers/
|
|
153
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-create
|
|
154
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-update
|
|
155
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-delete
|
|
156
156
|
*/
|
|
157
157
|
export type GatewayAutoModerationRuleModifyDispatch = DataPayload<GatewayDispatchEvents.AutoModerationRuleCreate | GatewayDispatchEvents.AutoModerationRuleDelete | GatewayDispatchEvents.AutoModerationRuleUpdate, GatewayAutoModerationRuleModifyDispatchData>;
|
|
158
158
|
/**
|
|
159
|
-
* https://discord.com/developers/
|
|
160
|
-
* https://discord.com/developers/
|
|
161
|
-
* https://discord.com/developers/
|
|
159
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-create
|
|
160
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-update
|
|
161
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-delete
|
|
162
162
|
*/
|
|
163
163
|
export type GatewayAutoModerationRuleModifyDispatchData = APIAutoModerationRule;
|
|
164
164
|
/**
|
|
165
|
-
* https://discord.com/developers/
|
|
165
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-create
|
|
166
166
|
*/
|
|
167
167
|
export type GatewayAutoModerationRuleCreateDispatch = GatewayAutoModerationRuleModifyDispatch;
|
|
168
168
|
/**
|
|
169
|
-
* https://discord.com/developers/
|
|
169
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-create
|
|
170
170
|
*/
|
|
171
171
|
export type GatewayAutoModerationRuleCreateDispatchData = GatewayAutoModerationRuleModifyDispatchData;
|
|
172
172
|
/**
|
|
173
|
-
* https://discord.com/developers/
|
|
173
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-update
|
|
174
174
|
*/
|
|
175
175
|
export type GatewayAutoModerationRuleUpdateDispatch = GatewayAutoModerationRuleModifyDispatch;
|
|
176
176
|
/**
|
|
177
|
-
* https://discord.com/developers/
|
|
177
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-update
|
|
178
178
|
*/
|
|
179
179
|
export type GatewayAutoModerationRuleUpdateDispatchData = GatewayAutoModerationRuleModifyDispatchData;
|
|
180
180
|
/**
|
|
181
|
-
* https://discord.com/developers/
|
|
181
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-delete
|
|
182
182
|
*/
|
|
183
183
|
export type GatewayAutoModerationRuleDeleteDispatch = GatewayAutoModerationRuleModifyDispatch;
|
|
184
184
|
/**
|
|
185
|
-
* https://discord.com/developers/
|
|
185
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-rule-delete
|
|
186
186
|
*/
|
|
187
187
|
export type GatewayAutoModerationRuleDeleteDispatchData = GatewayAutoModerationRuleModifyDispatchData;
|
|
188
188
|
/**
|
|
189
|
-
* https://discord.com/developers/
|
|
189
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-action-execution
|
|
190
190
|
*/
|
|
191
191
|
export type GatewayAutoModerationActionExecutionDispatch = DataPayload<GatewayDispatchEvents.AutoModerationActionExecution, GatewayAutoModerationActionExecutionDispatchData>;
|
|
192
192
|
/**
|
|
193
|
-
* https://discord.com/developers/
|
|
193
|
+
* https://docs.discord.com/developers/topics/gateway-events#auto-moderation-action-execution
|
|
194
194
|
*/
|
|
195
195
|
export interface GatewayAutoModerationActionExecutionDispatchData {
|
|
196
196
|
/**
|
|
@@ -247,11 +247,11 @@ export interface GatewayAutoModerationActionExecutionDispatchData {
|
|
|
247
247
|
matched_content: string | null;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
* https://discord.com/developers/
|
|
250
|
+
* https://docs.discord.com/developers/topics/gateway-events#application-command-permissions-update
|
|
251
251
|
*/
|
|
252
252
|
export type GatewayApplicationCommandPermissionsUpdateDispatch = DataPayload<GatewayDispatchEvents.ApplicationCommandPermissionsUpdate, GatewayApplicationCommandPermissionsUpdateDispatchData>;
|
|
253
253
|
/**
|
|
254
|
-
* https://discord.com/developers/
|
|
254
|
+
* https://docs.discord.com/developers/topics/gateway-events#application-command-permissions-update
|
|
255
255
|
*/
|
|
256
256
|
export interface GatewayApplicationCommandPermissionsUpdateDispatchData {
|
|
257
257
|
/**
|
|
@@ -272,47 +272,47 @@ export interface GatewayApplicationCommandPermissionsUpdateDispatchData {
|
|
|
272
272
|
permissions: APIApplicationCommandPermission[];
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
275
|
-
* https://discord.com/developers/
|
|
276
|
-
* https://discord.com/developers/
|
|
277
|
-
* https://discord.com/developers/
|
|
275
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-create
|
|
276
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-update
|
|
277
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-delete
|
|
278
278
|
*/
|
|
279
279
|
export type GatewayChannelModifyDispatch = DataPayload<GatewayDispatchEvents.ChannelCreate | GatewayDispatchEvents.ChannelDelete | GatewayDispatchEvents.ChannelUpdate, GatewayChannelModifyDispatchData>;
|
|
280
280
|
/**
|
|
281
|
-
* https://discord.com/developers/
|
|
282
|
-
* https://discord.com/developers/
|
|
283
|
-
* https://discord.com/developers/
|
|
281
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-create
|
|
282
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-update
|
|
283
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-delete
|
|
284
284
|
*/
|
|
285
285
|
export type GatewayChannelModifyDispatchData = APIChannel;
|
|
286
286
|
/**
|
|
287
|
-
* https://discord.com/developers/
|
|
287
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-create
|
|
288
288
|
*/
|
|
289
289
|
export type GatewayChannelCreateDispatch = GatewayChannelModifyDispatch;
|
|
290
290
|
/**
|
|
291
|
-
* https://discord.com/developers/
|
|
291
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-create
|
|
292
292
|
*/
|
|
293
293
|
export type GatewayChannelCreateDispatchData = GatewayChannelModifyDispatchData;
|
|
294
294
|
/**
|
|
295
|
-
* https://discord.com/developers/
|
|
295
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-update
|
|
296
296
|
*/
|
|
297
297
|
export type GatewayChannelUpdateDispatch = GatewayChannelModifyDispatch;
|
|
298
298
|
/**
|
|
299
|
-
* https://discord.com/developers/
|
|
299
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-update
|
|
300
300
|
*/
|
|
301
301
|
export type GatewayChannelUpdateDispatchData = GatewayChannelModifyDispatchData;
|
|
302
302
|
/**
|
|
303
|
-
* https://discord.com/developers/
|
|
303
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-delete
|
|
304
304
|
*/
|
|
305
305
|
export type GatewayChannelDeleteDispatch = GatewayChannelModifyDispatch;
|
|
306
306
|
/**
|
|
307
|
-
* https://discord.com/developers/
|
|
307
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-delete
|
|
308
308
|
*/
|
|
309
309
|
export type GatewayChannelDeleteDispatchData = GatewayChannelModifyDispatchData;
|
|
310
310
|
/**
|
|
311
|
-
* https://discord.com/developers/
|
|
311
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-pins-update
|
|
312
312
|
*/
|
|
313
313
|
export type GatewayChannelPinsUpdateDispatch = DataPayload<GatewayDispatchEvents.ChannelPinsUpdate, GatewayChannelPinsUpdateDispatchData>;
|
|
314
314
|
/**
|
|
315
|
-
* https://discord.com/developers/
|
|
315
|
+
* https://docs.discord.com/developers/topics/gateway-events#channel-pins-update
|
|
316
316
|
*/
|
|
317
317
|
export interface GatewayChannelPinsUpdateDispatchData {
|
|
318
318
|
/**
|
|
@@ -329,73 +329,73 @@ export interface GatewayChannelPinsUpdateDispatchData {
|
|
|
329
329
|
last_pin_timestamp?: string | null;
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
332
|
-
* https://discord.com/developers/
|
|
333
|
-
* https://discord.com/developers/
|
|
334
|
-
* https://discord.com/developers/
|
|
332
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-create
|
|
333
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-update
|
|
334
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-delete
|
|
335
335
|
*/
|
|
336
336
|
export type GatewayEntitlementModifyDispatchData = APIEntitlement;
|
|
337
337
|
/**
|
|
338
|
-
* https://discord.com/developers/
|
|
339
|
-
* https://discord.com/developers/
|
|
340
|
-
* https://discord.com/developers/
|
|
338
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-create
|
|
339
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-update
|
|
340
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-delete
|
|
341
341
|
*/
|
|
342
342
|
export type GatewayEntitlementModifyDispatch = DataPayload<GatewayDispatchEvents.EntitlementCreate | GatewayDispatchEvents.EntitlementDelete | GatewayDispatchEvents.EntitlementUpdate, GatewayEntitlementModifyDispatchData>;
|
|
343
343
|
/**
|
|
344
|
-
* https://discord.com/developers/
|
|
344
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-create
|
|
345
345
|
*/
|
|
346
346
|
export type GatewayEntitlementCreateDispatchData = Omit<GatewayEntitlementModifyDispatchData, 'ends_at'> & {
|
|
347
347
|
ends_at: null;
|
|
348
348
|
};
|
|
349
349
|
/**
|
|
350
|
-
* https://discord.com/developers/
|
|
350
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-create
|
|
351
351
|
*/
|
|
352
352
|
export type GatewayEntitlementCreateDispatch = GatewayEntitlementModifyDispatch;
|
|
353
353
|
/**
|
|
354
|
-
* https://discord.com/developers/
|
|
354
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-update
|
|
355
355
|
*/
|
|
356
356
|
export type GatewayEntitlementUpdateDispatchData = GatewayEntitlementModifyDispatchData;
|
|
357
357
|
/**
|
|
358
|
-
* https://discord.com/developers/
|
|
358
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-update
|
|
359
359
|
*/
|
|
360
360
|
export type GatewayEntitlementUpdateDispatch = GatewayEntitlementModifyDispatch;
|
|
361
361
|
/**
|
|
362
|
-
* https://discord.com/developers/
|
|
362
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-delete
|
|
363
363
|
*/
|
|
364
364
|
export type GatewayEntitlementDeleteDispatchData = GatewayEntitlementModifyDispatchData;
|
|
365
365
|
/**
|
|
366
|
-
* https://discord.com/developers/
|
|
366
|
+
* https://docs.discord.com/developers/topics/gateway-events#entitlement-delete
|
|
367
367
|
*/
|
|
368
368
|
export type GatewayEntitlementDeleteDispatch = GatewayEntitlementModifyDispatch;
|
|
369
369
|
/**
|
|
370
|
-
* https://discord.com/developers/
|
|
370
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-create
|
|
371
371
|
*/
|
|
372
372
|
export type GatewayGuildModifyDispatch = DataPayload<GatewayDispatchEvents.GuildUpdate, GatewayGuildModifyDispatchData>;
|
|
373
373
|
/**
|
|
374
|
-
* https://discord.com/developers/
|
|
374
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-update
|
|
375
375
|
*/
|
|
376
376
|
export type GatewayGuildModifyDispatchData = APIGuild;
|
|
377
377
|
/**
|
|
378
|
-
* https://discord.com/developers/
|
|
378
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-create
|
|
379
379
|
*/
|
|
380
380
|
export type GatewayGuildCreateDispatch = DataPayload<GatewayDispatchEvents.GuildCreate, GatewayGuildCreateDispatchData>;
|
|
381
381
|
export type GatewayRawGuildCreateDispatch = OmitInsert<GatewayGuildCreateDispatch, 't', {
|
|
382
382
|
t: GatewayDispatchEvents.RawGuildCreate;
|
|
383
383
|
}>;
|
|
384
384
|
/**
|
|
385
|
-
* https://discord.com/developers/
|
|
386
|
-
* https://discord.com/developers/
|
|
385
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-create
|
|
386
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-create-guild-create-extra-fields
|
|
387
387
|
*/
|
|
388
388
|
export interface GatewayGuildCreateDispatchData extends APIGuild {
|
|
389
389
|
/**
|
|
390
390
|
* When this guild was joined at
|
|
391
391
|
*
|
|
392
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
392
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
393
393
|
*/
|
|
394
394
|
joined_at: string;
|
|
395
395
|
/**
|
|
396
396
|
* `true` if this is considered a large guild
|
|
397
397
|
*
|
|
398
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
398
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
399
399
|
*/
|
|
400
400
|
large: boolean;
|
|
401
401
|
/**
|
|
@@ -405,84 +405,84 @@ export interface GatewayGuildCreateDispatchData extends APIGuild {
|
|
|
405
405
|
/**
|
|
406
406
|
* Total number of members in this guild
|
|
407
407
|
*
|
|
408
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
408
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
409
409
|
*/
|
|
410
410
|
member_count: number;
|
|
411
411
|
/**
|
|
412
412
|
* States of members currently in voice channels; lacks the `guild_id` key
|
|
413
413
|
*
|
|
414
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
414
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
415
415
|
*
|
|
416
|
-
* See https://discord.com/developers/
|
|
416
|
+
* See https://docs.discord.com/developers/resources/voice#voice-state-object
|
|
417
417
|
*/
|
|
418
418
|
voice_states: Omit<APIVoiceState, 'guild_id'>[];
|
|
419
419
|
/**
|
|
420
420
|
* Users in the guild
|
|
421
421
|
*
|
|
422
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
422
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
423
423
|
*
|
|
424
|
-
* See https://discord.com/developers/
|
|
424
|
+
* See https://docs.discord.com/developers/resources/guild#guild-member-object
|
|
425
425
|
*/
|
|
426
426
|
members: APIGuildMember[];
|
|
427
427
|
/**
|
|
428
428
|
* Channels in the guild
|
|
429
429
|
*
|
|
430
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
430
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
431
431
|
*
|
|
432
|
-
* See https://discord.com/developers/
|
|
432
|
+
* See https://docs.discord.com/developers/resources/channel#channel-object
|
|
433
433
|
*/
|
|
434
434
|
channels: APIChannel[];
|
|
435
435
|
/**
|
|
436
436
|
* Threads in the guild
|
|
437
437
|
*
|
|
438
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
438
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
439
439
|
*
|
|
440
|
-
* See https://discord.com/developers/
|
|
440
|
+
* See https://docs.discord.com/developers/resources/channel#channel-object
|
|
441
441
|
*/
|
|
442
442
|
threads: APIThreadChannel[];
|
|
443
443
|
/**
|
|
444
444
|
* Presences of the members in the guild, will only include non-offline members if the size is greater than `large_threshold`
|
|
445
445
|
*
|
|
446
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
446
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
447
447
|
*
|
|
448
|
-
* See https://discord.com/developers/
|
|
448
|
+
* See https://docs.discord.com/developers/topics/gateway-events#presence-update
|
|
449
449
|
*/
|
|
450
450
|
presences: GatewayPresenceUpdate[];
|
|
451
451
|
/**
|
|
452
452
|
* The stage instances in the guild
|
|
453
453
|
*
|
|
454
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
454
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
455
455
|
*
|
|
456
|
-
* See https://discord.com/developers/
|
|
456
|
+
* See https://docs.discord.com/developers/resources/stage-instance#stage-instance-object-stage-instance-structure
|
|
457
457
|
*/
|
|
458
458
|
stage_instances: APIStageInstance[];
|
|
459
459
|
/**
|
|
460
460
|
* The scheduled events in the guild
|
|
461
461
|
*
|
|
462
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
462
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
463
463
|
*
|
|
464
|
-
* https://discord.com/developers/
|
|
464
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#guild-scheduled-event-object
|
|
465
465
|
*/
|
|
466
466
|
guild_scheduled_events: APIGuildScheduledEvent[];
|
|
467
467
|
/**
|
|
468
468
|
* Soundboard sounds in the guild
|
|
469
469
|
*
|
|
470
|
-
* **This field is only sent within the [GUILD_CREATE](https://discord.com/developers/
|
|
470
|
+
* **This field is only sent within the [GUILD_CREATE](https://docs.discord.com/developers/topics/gateway-events#guild-create) event**
|
|
471
471
|
*
|
|
472
|
-
* https://discord.com/developers/
|
|
472
|
+
* https://docs.discord.com/developers/resources/soundboard
|
|
473
473
|
*/
|
|
474
474
|
soundboard_sounds: APISoundboardSound[];
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
* https://discord.com/developers/
|
|
477
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-update
|
|
478
478
|
*/
|
|
479
479
|
export type GatewayGuildUpdateDispatch = GatewayGuildModifyDispatch;
|
|
480
480
|
/**
|
|
481
|
-
* https://discord.com/developers/
|
|
481
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-update
|
|
482
482
|
*/
|
|
483
483
|
export type GatewayGuildUpdateDispatchData = GatewayGuildModifyDispatchData;
|
|
484
484
|
/**
|
|
485
|
-
* https://discord.com/developers/
|
|
485
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-delete
|
|
486
486
|
*/
|
|
487
487
|
export type GatewayGuildDeleteDispatch = DataPayload<GatewayDispatchEvents.GuildDelete, GatewayGuildDeleteDispatchData>;
|
|
488
488
|
export type GatewayRawGuildDeleteDispatch = OmitInsert<GatewayGuildDeleteDispatch, 't', {
|
|
@@ -493,17 +493,17 @@ export type GatewayGuildsReadyDispatch = OmitInsert<GatewayReadyDispatch, 't' |
|
|
|
493
493
|
d?: never;
|
|
494
494
|
}>;
|
|
495
495
|
/**
|
|
496
|
-
* https://discord.com/developers/
|
|
496
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-delete
|
|
497
497
|
*/
|
|
498
498
|
export type GatewayGuildDeleteDispatchData = APIUnavailableGuild;
|
|
499
499
|
/**
|
|
500
|
-
* https://discord.com/developers/
|
|
501
|
-
* https://discord.com/developers/
|
|
500
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-add
|
|
501
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-remove
|
|
502
502
|
*/
|
|
503
503
|
export type GatewayGuildBanModifyDispatch = DataPayload<GatewayDispatchEvents.GuildBanAdd | GatewayDispatchEvents.GuildBanRemove, GatewayGuildBanModifyDispatchData>;
|
|
504
504
|
/**
|
|
505
|
-
* https://discord.com/developers/
|
|
506
|
-
* https://discord.com/developers/
|
|
505
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-add
|
|
506
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-remove
|
|
507
507
|
*/
|
|
508
508
|
export interface GatewayGuildBanModifyDispatchData {
|
|
509
509
|
/**
|
|
@@ -513,32 +513,32 @@ export interface GatewayGuildBanModifyDispatchData {
|
|
|
513
513
|
/**
|
|
514
514
|
* The banned user
|
|
515
515
|
*
|
|
516
|
-
* See https://discord.com/developers/
|
|
516
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
517
517
|
*/
|
|
518
518
|
user: APIUser;
|
|
519
519
|
}
|
|
520
520
|
/**
|
|
521
|
-
* https://discord.com/developers/
|
|
521
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-add
|
|
522
522
|
*/
|
|
523
523
|
export type GatewayGuildBanAddDispatch = GatewayGuildBanModifyDispatch;
|
|
524
524
|
/**
|
|
525
|
-
* https://discord.com/developers/
|
|
525
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-add
|
|
526
526
|
*/
|
|
527
527
|
export type GatewayGuildBanAddDispatchData = GatewayGuildBanModifyDispatchData;
|
|
528
528
|
/**
|
|
529
|
-
* https://discord.com/developers/
|
|
529
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-remove
|
|
530
530
|
*/
|
|
531
531
|
export type GatewayGuildBanRemoveDispatch = GatewayGuildBanModifyDispatch;
|
|
532
532
|
/**
|
|
533
|
-
* https://discord.com/developers/
|
|
533
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-ban-remove
|
|
534
534
|
*/
|
|
535
535
|
export type GatewayGuildBanRemoveDispatchData = GatewayGuildBanModifyDispatchData;
|
|
536
536
|
/**
|
|
537
|
-
* https://discord.com/developers/
|
|
537
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-emojis-update
|
|
538
538
|
*/
|
|
539
539
|
export type GatewayGuildEmojisUpdateDispatch = DataPayload<GatewayDispatchEvents.GuildEmojisUpdate, GatewayGuildEmojisUpdateDispatchData>;
|
|
540
540
|
/**
|
|
541
|
-
* https://discord.com/developers/
|
|
541
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-emojis-update
|
|
542
542
|
*/
|
|
543
543
|
export interface GatewayGuildEmojisUpdateDispatchData {
|
|
544
544
|
/**
|
|
@@ -548,16 +548,16 @@ export interface GatewayGuildEmojisUpdateDispatchData {
|
|
|
548
548
|
/**
|
|
549
549
|
* Array of emojis
|
|
550
550
|
*
|
|
551
|
-
* See https://discord.com/developers/
|
|
551
|
+
* See https://docs.discord.com/developers/resources/emoji#emoji-object
|
|
552
552
|
*/
|
|
553
553
|
emojis: APIEmoji[];
|
|
554
554
|
}
|
|
555
555
|
/**
|
|
556
|
-
* https://discord.com/developers/
|
|
556
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-stickers-update
|
|
557
557
|
*/
|
|
558
558
|
export type GatewayGuildStickersUpdateDispatch = DataPayload<GatewayDispatchEvents.GuildStickersUpdate, GatewayGuildStickersUpdateDispatchData>;
|
|
559
559
|
/**
|
|
560
|
-
* https://discord.com/developers/
|
|
560
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-stickers-update
|
|
561
561
|
*/
|
|
562
562
|
export interface GatewayGuildStickersUpdateDispatchData {
|
|
563
563
|
/**
|
|
@@ -567,16 +567,16 @@ export interface GatewayGuildStickersUpdateDispatchData {
|
|
|
567
567
|
/**
|
|
568
568
|
* Array of stickers
|
|
569
569
|
*
|
|
570
|
-
* See https://discord.com/developers/
|
|
570
|
+
* See https://docs.discord.com/developers/resources/sticker#sticker-object
|
|
571
571
|
*/
|
|
572
572
|
stickers: APISticker[];
|
|
573
573
|
}
|
|
574
574
|
/**
|
|
575
|
-
* https://discord.com/developers/
|
|
575
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-integrations-update
|
|
576
576
|
*/
|
|
577
577
|
export type GatewayGuildIntegrationsUpdateDispatch = DataPayload<GatewayDispatchEvents.GuildIntegrationsUpdate, GatewayGuildIntegrationsUpdateDispatchData>;
|
|
578
578
|
/**
|
|
579
|
-
* https://discord.com/developers/
|
|
579
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-integrations-update
|
|
580
580
|
*/
|
|
581
581
|
export interface GatewayGuildIntegrationsUpdateDispatchData {
|
|
582
582
|
/**
|
|
@@ -585,11 +585,11 @@ export interface GatewayGuildIntegrationsUpdateDispatchData {
|
|
|
585
585
|
guild_id: Snowflake;
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
588
|
-
* https://discord.com/developers/
|
|
588
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-member-add
|
|
589
589
|
*/
|
|
590
590
|
export type GatewayGuildMemberAddDispatch = DataPayload<GatewayDispatchEvents.GuildMemberAdd, GatewayGuildMemberAddDispatchData>;
|
|
591
591
|
/**
|
|
592
|
-
* https://discord.com/developers/
|
|
592
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-member-add
|
|
593
593
|
*/
|
|
594
594
|
export interface GatewayGuildMemberAddDispatchData extends APIGuildMember {
|
|
595
595
|
/**
|
|
@@ -598,11 +598,11 @@ export interface GatewayGuildMemberAddDispatchData extends APIGuildMember {
|
|
|
598
598
|
guild_id: Snowflake;
|
|
599
599
|
}
|
|
600
600
|
/**
|
|
601
|
-
* https://discord.com/developers/
|
|
601
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-member-remove
|
|
602
602
|
*/
|
|
603
603
|
export type GatewayGuildMemberRemoveDispatch = DataPayload<GatewayDispatchEvents.GuildMemberRemove, GatewayGuildMemberRemoveDispatchData>;
|
|
604
604
|
/**
|
|
605
|
-
* https://discord.com/developers/
|
|
605
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-member-remove
|
|
606
606
|
*/
|
|
607
607
|
export interface GatewayGuildMemberRemoveDispatchData {
|
|
608
608
|
/**
|
|
@@ -612,16 +612,16 @@ export interface GatewayGuildMemberRemoveDispatchData {
|
|
|
612
612
|
/**
|
|
613
613
|
* The user who was removed
|
|
614
614
|
*
|
|
615
|
-
* See https://discord.com/developers/
|
|
615
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
616
616
|
*/
|
|
617
617
|
user: APIUser;
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
|
-
* https://discord.com/developers/
|
|
620
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-member-update
|
|
621
621
|
*/
|
|
622
622
|
export type GatewayGuildMemberUpdateDispatch = DataPayload<GatewayDispatchEvents.GuildMemberUpdate, GatewayGuildMemberUpdateDispatchData>;
|
|
623
623
|
/**
|
|
624
|
-
* https://discord.com/developers/
|
|
624
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-member-update
|
|
625
625
|
*/
|
|
626
626
|
export type GatewayGuildMemberUpdateDispatchData = Nullable<Pick<APIGuildMember, 'joined_at'>> & Omit<APIGuildMember, 'deaf' | 'joined_at' | 'mute' | 'user'> & Partial<Pick<APIGuildMember, 'deaf' | 'mute'>> & Required<Pick<APIGuildMember, 'user'>> & {
|
|
627
627
|
/**
|
|
@@ -630,15 +630,15 @@ export type GatewayGuildMemberUpdateDispatchData = Nullable<Pick<APIGuildMember,
|
|
|
630
630
|
guild_id: Snowflake;
|
|
631
631
|
};
|
|
632
632
|
/**
|
|
633
|
-
* https://discord.com/developers/
|
|
633
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-members-chunk
|
|
634
634
|
*/
|
|
635
635
|
export type GatewayGuildMembersChunkDispatch = DataPayload<GatewayDispatchEvents.GuildMembersChunk, GatewayGuildMembersChunkDispatchData>;
|
|
636
636
|
/**
|
|
637
|
-
* https://discord.com/developers/
|
|
637
|
+
* https://docs.discord.com/developers/topics/gateway-events#update-presence
|
|
638
638
|
*/
|
|
639
639
|
export type GatewayGuildMembersChunkPresence = Omit<RawGatewayPresenceUpdate, 'guild_id'>;
|
|
640
640
|
/**
|
|
641
|
-
* https://discord.com/developers/
|
|
641
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-members-chunk
|
|
642
642
|
*/
|
|
643
643
|
export interface GatewayGuildMembersChunkDispatchData {
|
|
644
644
|
/**
|
|
@@ -648,7 +648,7 @@ export interface GatewayGuildMembersChunkDispatchData {
|
|
|
648
648
|
/**
|
|
649
649
|
* Set of guild members
|
|
650
650
|
*
|
|
651
|
-
* See https://discord.com/developers/
|
|
651
|
+
* See https://docs.discord.com/developers/resources/guild#guild-member-object
|
|
652
652
|
*/
|
|
653
653
|
members: APIGuildMember[];
|
|
654
654
|
/**
|
|
@@ -666,24 +666,24 @@ export interface GatewayGuildMembersChunkDispatchData {
|
|
|
666
666
|
/**
|
|
667
667
|
* If passing true to `REQUEST_GUILD_MEMBERS`, presences of the returned members will be here
|
|
668
668
|
*
|
|
669
|
-
* See https://discord.com/developers/
|
|
669
|
+
* See https://docs.discord.com/developers/topics/gateway-events#update-presence
|
|
670
670
|
*/
|
|
671
671
|
presences?: GatewayGuildMembersChunkPresence[];
|
|
672
672
|
/**
|
|
673
673
|
* The nonce used in the Guild Members Request
|
|
674
674
|
*
|
|
675
|
-
* See https://discord.com/developers/
|
|
675
|
+
* See https://docs.discord.com/developers/topics/gateway-events#request-guild-members
|
|
676
676
|
*/
|
|
677
677
|
nonce?: string;
|
|
678
678
|
}
|
|
679
679
|
/**
|
|
680
|
-
* https://discord.com/developers/
|
|
681
|
-
* https://discord.com/developers/
|
|
680
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-create
|
|
681
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-update
|
|
682
682
|
*/
|
|
683
683
|
export type GatewayGuildRoleModifyDispatch = DataPayload<GatewayDispatchEvents.GuildRoleCreate | GatewayDispatchEvents.GuildRoleUpdate, GatewayGuildRoleModifyDispatchData>;
|
|
684
684
|
/**
|
|
685
|
-
* https://discord.com/developers/
|
|
686
|
-
* https://discord.com/developers/
|
|
685
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-create
|
|
686
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-update
|
|
687
687
|
*/
|
|
688
688
|
export interface GatewayGuildRoleModifyDispatchData {
|
|
689
689
|
/**
|
|
@@ -693,32 +693,32 @@ export interface GatewayGuildRoleModifyDispatchData {
|
|
|
693
693
|
/**
|
|
694
694
|
* The role created or updated
|
|
695
695
|
*
|
|
696
|
-
* See https://discord.com/developers/
|
|
696
|
+
* See https://docs.discord.com/developers/topics/permissions#role-object
|
|
697
697
|
*/
|
|
698
698
|
role: APIRole;
|
|
699
699
|
}
|
|
700
700
|
/**
|
|
701
|
-
* https://discord.com/developers/
|
|
701
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-create
|
|
702
702
|
*/
|
|
703
703
|
export type GatewayGuildRoleCreateDispatch = GatewayGuildRoleModifyDispatch;
|
|
704
704
|
/**
|
|
705
|
-
* https://discord.com/developers/
|
|
705
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-create
|
|
706
706
|
*/
|
|
707
707
|
export type GatewayGuildRoleCreateDispatchData = GatewayGuildRoleModifyDispatchData;
|
|
708
708
|
/**
|
|
709
|
-
* https://discord.com/developers/
|
|
709
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-update
|
|
710
710
|
*/
|
|
711
711
|
export type GatewayGuildRoleUpdateDispatch = GatewayGuildRoleModifyDispatch;
|
|
712
712
|
/**
|
|
713
|
-
* https://discord.com/developers/
|
|
713
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-update
|
|
714
714
|
*/
|
|
715
715
|
export type GatewayGuildRoleUpdateDispatchData = GatewayGuildRoleModifyDispatchData;
|
|
716
716
|
/**
|
|
717
|
-
* https://discord.com/developers/
|
|
717
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-delete
|
|
718
718
|
*/
|
|
719
719
|
export type GatewayGuildRoleDeleteDispatch = DataPayload<GatewayDispatchEvents.GuildRoleDelete, GatewayGuildRoleDeleteDispatchData>;
|
|
720
720
|
/**
|
|
721
|
-
* https://discord.com/developers/
|
|
721
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-role-delete
|
|
722
722
|
*/
|
|
723
723
|
export interface GatewayGuildRoleDeleteDispatchData {
|
|
724
724
|
/**
|
|
@@ -774,31 +774,31 @@ export interface GatewaySoundboardSoundsDispatchData {
|
|
|
774
774
|
}
|
|
775
775
|
export type GatewaySoundboardSoundsDispatch = DataPayload<GatewayDispatchEvents.SoundboardSounds, GatewaySoundboardSoundsDispatchData>;
|
|
776
776
|
/**
|
|
777
|
-
* https://discord.com/developers/
|
|
777
|
+
* https://docs.discord.com/developers/topics/gateway-events#integration-create
|
|
778
778
|
*/
|
|
779
779
|
export type GatewayIntegrationCreateDispatch = DataPayload<GatewayDispatchEvents.IntegrationCreate, GatewayIntegrationCreateDispatchData>;
|
|
780
780
|
/**
|
|
781
|
-
* https://discord.com/developers/
|
|
781
|
+
* https://docs.discord.com/developers/topics/gateway-events#integration-create
|
|
782
782
|
*/
|
|
783
783
|
export type GatewayIntegrationCreateDispatchData = APIGuildIntegration & {
|
|
784
784
|
guild_id: Snowflake;
|
|
785
785
|
};
|
|
786
786
|
/**
|
|
787
|
-
* https://discord.com/developers/
|
|
787
|
+
* https://docs.discord.com/developers/topics/gateway-events#integration-update
|
|
788
788
|
*/
|
|
789
789
|
export type GatewayIntegrationUpdateDispatch = DataPayload<GatewayDispatchEvents.IntegrationUpdate, GatewayIntegrationUpdateDispatchData>;
|
|
790
790
|
/**
|
|
791
|
-
* https://discord.com/developers/
|
|
791
|
+
* https://docs.discord.com/developers/topics/gateway-events#integration-update
|
|
792
792
|
*/
|
|
793
793
|
export type GatewayIntegrationUpdateDispatchData = APIGuildIntegration & {
|
|
794
794
|
guild_id: Snowflake;
|
|
795
795
|
};
|
|
796
796
|
/**
|
|
797
|
-
* https://discord.com/developers/
|
|
797
|
+
* https://docs.discord.com/developers/topics/gateway-events#integration-update
|
|
798
798
|
*/
|
|
799
799
|
export type GatewayIntegrationDeleteDispatch = DataPayload<GatewayDispatchEvents.IntegrationDelete, GatewayIntegrationDeleteDispatchData>;
|
|
800
800
|
/**
|
|
801
|
-
* https://discord.com/developers/
|
|
801
|
+
* https://docs.discord.com/developers/topics/gateway-events#integration-delete
|
|
802
802
|
*/
|
|
803
803
|
export interface GatewayIntegrationDeleteDispatchData {
|
|
804
804
|
/**
|
|
@@ -815,19 +815,19 @@ export interface GatewayIntegrationDeleteDispatchData {
|
|
|
815
815
|
application_id?: Snowflake;
|
|
816
816
|
}
|
|
817
817
|
/**
|
|
818
|
-
* https://discord.com/developers/
|
|
818
|
+
* https://docs.discord.com/developers/topics/gateway-events#interaction-create
|
|
819
819
|
*/
|
|
820
820
|
export type GatewayInteractionCreateDispatch = DataPayload<GatewayDispatchEvents.InteractionCreate, GatewayInteractionCreateDispatchData>;
|
|
821
821
|
/**
|
|
822
|
-
* https://discord.com/developers/
|
|
822
|
+
* https://docs.discord.com/developers/topics/gateway-events#interaction-create
|
|
823
823
|
*/
|
|
824
824
|
export type GatewayInteractionCreateDispatchData = APIInteraction;
|
|
825
825
|
/**
|
|
826
|
-
* https://discord.com/developers/
|
|
826
|
+
* https://docs.discord.com/developers/topics/gateway-events#invite-create
|
|
827
827
|
*/
|
|
828
828
|
export type GatewayInviteCreateDispatch = DataPayload<GatewayDispatchEvents.InviteCreate, GatewayInviteCreateDispatchData>;
|
|
829
829
|
/**
|
|
830
|
-
* https://discord.com/developers/
|
|
830
|
+
* https://docs.discord.com/developers/topics/gateway-events#invite-create
|
|
831
831
|
*/
|
|
832
832
|
export interface GatewayInviteCreateDispatchData {
|
|
833
833
|
/**
|
|
@@ -837,7 +837,7 @@ export interface GatewayInviteCreateDispatchData {
|
|
|
837
837
|
/**
|
|
838
838
|
* The unique invite code
|
|
839
839
|
*
|
|
840
|
-
* See https://discord.com/developers/
|
|
840
|
+
* See https://docs.discord.com/developers/resources/invite#invite-object
|
|
841
841
|
*/
|
|
842
842
|
code: string;
|
|
843
843
|
/**
|
|
@@ -851,7 +851,7 @@ export interface GatewayInviteCreateDispatchData {
|
|
|
851
851
|
/**
|
|
852
852
|
* The user that created the invite
|
|
853
853
|
*
|
|
854
|
-
* See https://discord.com/developers/
|
|
854
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
855
855
|
*/
|
|
856
856
|
inviter?: APIUser;
|
|
857
857
|
/**
|
|
@@ -865,13 +865,13 @@ export interface GatewayInviteCreateDispatchData {
|
|
|
865
865
|
/**
|
|
866
866
|
* The type of target for this voice channel invite
|
|
867
867
|
*
|
|
868
|
-
* See https://discord.com/developers/
|
|
868
|
+
* See https://docs.discord.com/developers/resources/invite#invite-object-invite-target-types
|
|
869
869
|
*/
|
|
870
870
|
target_type?: InviteTargetType;
|
|
871
871
|
/**
|
|
872
872
|
* The user whose stream to display for this voice channel stream invite
|
|
873
873
|
*
|
|
874
|
-
* See https://discord.com/developers/
|
|
874
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
875
875
|
*/
|
|
876
876
|
target_user?: APIUser;
|
|
877
877
|
/**
|
|
@@ -888,11 +888,11 @@ export interface GatewayInviteCreateDispatchData {
|
|
|
888
888
|
uses: 0;
|
|
889
889
|
}
|
|
890
890
|
/**
|
|
891
|
-
* https://discord.com/developers/
|
|
891
|
+
* https://docs.discord.com/developers/topics/gateway-events#invite-delete
|
|
892
892
|
*/
|
|
893
893
|
export type GatewayInviteDeleteDispatch = DataPayload<GatewayDispatchEvents.InviteDelete, GatewayInviteDeleteDispatchData>;
|
|
894
894
|
/**
|
|
895
|
-
* https://discord.com/developers/
|
|
895
|
+
* https://docs.discord.com/developers/topics/gateway-events#invite-delete
|
|
896
896
|
*/
|
|
897
897
|
export interface GatewayInviteDeleteDispatchData {
|
|
898
898
|
/**
|
|
@@ -906,24 +906,24 @@ export interface GatewayInviteDeleteDispatchData {
|
|
|
906
906
|
/**
|
|
907
907
|
* The unique invite code
|
|
908
908
|
*
|
|
909
|
-
* See https://discord.com/developers/
|
|
909
|
+
* See https://docs.discord.com/developers/resources/invite#invite-object
|
|
910
910
|
*/
|
|
911
911
|
code: string;
|
|
912
912
|
}
|
|
913
913
|
/**
|
|
914
|
-
* https://discord.com/developers/
|
|
914
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-create
|
|
915
915
|
*/
|
|
916
916
|
export type GatewayMessageCreateDispatch = DataPayload<GatewayDispatchEvents.MessageCreate, GatewayMessageCreateDispatchData>;
|
|
917
917
|
/**
|
|
918
|
-
* https://discord.com/developers/
|
|
918
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-create
|
|
919
919
|
*/
|
|
920
920
|
export type GatewayMessageCreateDispatchData = GatewayMessageEventExtraFields & Omit<APIMessage, 'mentions'>;
|
|
921
921
|
/**
|
|
922
|
-
* https://discord.com/developers/
|
|
922
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-update
|
|
923
923
|
*/
|
|
924
924
|
export type GatewayMessageUpdateDispatch = DataPayload<GatewayDispatchEvents.MessageUpdate, GatewayMessageUpdateDispatchData>;
|
|
925
925
|
/**
|
|
926
|
-
* https://discord.com/developers/
|
|
926
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-update
|
|
927
927
|
*/
|
|
928
928
|
export type GatewayMessageUpdateDispatchData = Omit<GatewayMessageCreateDispatchData, 'tts'> & {
|
|
929
929
|
tts: false;
|
|
@@ -933,13 +933,17 @@ export interface GatewayMessageEventExtraFields {
|
|
|
933
933
|
* ID of the guild the message was sent in
|
|
934
934
|
*/
|
|
935
935
|
guild_id?: Snowflake;
|
|
936
|
+
/**
|
|
937
|
+
* The type of channel the message was sent in
|
|
938
|
+
*/
|
|
939
|
+
channel_type?: TextChannelType;
|
|
936
940
|
/**
|
|
937
941
|
* Member properties for this message's author
|
|
938
942
|
*
|
|
939
943
|
* The member object exists in `MESSAGE_CREATE` and `MESSAGE_UPDATE` events
|
|
940
944
|
* from text-based guild channels
|
|
941
945
|
*
|
|
942
|
-
* See https://discord.com/developers/
|
|
946
|
+
* See https://docs.discord.com/developers/resources/guild#guild-member-object
|
|
943
947
|
*/
|
|
944
948
|
member?: Omit<APIGuildMember, 'user'>;
|
|
945
949
|
/**
|
|
@@ -948,19 +952,19 @@ export interface GatewayMessageEventExtraFields {
|
|
|
948
952
|
* The `member` field is only present in `MESSAGE_CREATE` and `MESSAGE_UPDATE` events
|
|
949
953
|
* from text-based guild channels
|
|
950
954
|
*
|
|
951
|
-
* See https://discord.com/developers/
|
|
952
|
-
* See https://discord.com/developers/
|
|
955
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
956
|
+
* See https://docs.discord.com/developers/resources/guild#guild-member-object
|
|
953
957
|
*/
|
|
954
958
|
mentions: (APIUser & {
|
|
955
959
|
member?: Omit<APIGuildMember, 'user'>;
|
|
956
960
|
})[];
|
|
957
961
|
}
|
|
958
962
|
/**
|
|
959
|
-
* https://discord.com/developers/
|
|
963
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-delete
|
|
960
964
|
*/
|
|
961
965
|
export type GatewayMessageDeleteDispatch = DataPayload<GatewayDispatchEvents.MessageDelete, GatewayMessageDeleteDispatchData>;
|
|
962
966
|
/**
|
|
963
|
-
* https://discord.com/developers/
|
|
967
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-delete
|
|
964
968
|
*/
|
|
965
969
|
export interface GatewayMessageDeleteDispatchData {
|
|
966
970
|
/**
|
|
@@ -977,11 +981,11 @@ export interface GatewayMessageDeleteDispatchData {
|
|
|
977
981
|
guild_id?: Snowflake;
|
|
978
982
|
}
|
|
979
983
|
/**
|
|
980
|
-
* https://discord.com/developers/
|
|
984
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-delete-bulk
|
|
981
985
|
*/
|
|
982
986
|
export type GatewayMessageDeleteBulkDispatch = DataPayload<GatewayDispatchEvents.MessageDeleteBulk, GatewayMessageDeleteBulkDispatchData>;
|
|
983
987
|
/**
|
|
984
|
-
* https://discord.com/developers/
|
|
988
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-delete-bulk
|
|
985
989
|
*/
|
|
986
990
|
export interface GatewayMessageDeleteBulkDispatchData {
|
|
987
991
|
/**
|
|
@@ -998,35 +1002,35 @@ export interface GatewayMessageDeleteBulkDispatchData {
|
|
|
998
1002
|
guild_id?: Snowflake;
|
|
999
1003
|
}
|
|
1000
1004
|
/**
|
|
1001
|
-
* https://discord.com/developers/
|
|
1005
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-add
|
|
1002
1006
|
*/
|
|
1003
1007
|
export type GatewayMessageReactionAddDispatch = ReactionData<GatewayDispatchEvents.MessageReactionAdd>;
|
|
1004
1008
|
/**
|
|
1005
|
-
* https://discord.com/developers/
|
|
1009
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-add
|
|
1006
1010
|
*/
|
|
1007
1011
|
export type GatewayMessageReactionAddDispatchData = GatewayMessageReactionAddDispatch['d'];
|
|
1008
1012
|
/**
|
|
1009
|
-
* https://discord.com/developers/
|
|
1013
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-remove
|
|
1010
1014
|
*/
|
|
1011
1015
|
export type GatewayMessageReactionRemoveDispatch = ReactionData<GatewayDispatchEvents.MessageReactionRemove, 'burst_colors' | 'member' | 'message_author_id'>;
|
|
1012
1016
|
/**
|
|
1013
|
-
* https://discord.com/developers/
|
|
1017
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-remove
|
|
1014
1018
|
*/
|
|
1015
1019
|
export type GatewayMessageReactionRemoveDispatchData = GatewayMessageReactionRemoveDispatch['d'];
|
|
1016
1020
|
/**
|
|
1017
|
-
* https://discord.com/developers/
|
|
1021
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-remove-all
|
|
1018
1022
|
*/
|
|
1019
1023
|
export type GatewayMessageReactionRemoveAllDispatch = DataPayload<GatewayDispatchEvents.MessageReactionRemoveAll, GatewayMessageReactionRemoveAllDispatchData>;
|
|
1020
1024
|
/**
|
|
1021
|
-
* https://discord.com/developers/
|
|
1025
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-remove-all
|
|
1022
1026
|
*/
|
|
1023
1027
|
export type GatewayMessageReactionRemoveAllDispatchData = MessageReactionRemoveData;
|
|
1024
1028
|
/**
|
|
1025
|
-
* https://discord.com/developers/
|
|
1029
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-remove-emoji
|
|
1026
1030
|
*/
|
|
1027
1031
|
export type GatewayMessageReactionRemoveEmojiDispatch = DataPayload<GatewayDispatchEvents.MessageReactionRemoveEmoji, GatewayMessageReactionRemoveEmojiDispatchData>;
|
|
1028
1032
|
/**
|
|
1029
|
-
* https://discord.com/developers/
|
|
1033
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-reaction-remove-emoji
|
|
1030
1034
|
*/
|
|
1031
1035
|
export interface GatewayMessageReactionRemoveEmojiDispatchData extends MessageReactionRemoveData {
|
|
1032
1036
|
/**
|
|
@@ -1035,35 +1039,35 @@ export interface GatewayMessageReactionRemoveEmojiDispatchData extends MessageRe
|
|
|
1035
1039
|
emoji: APIEmoji;
|
|
1036
1040
|
}
|
|
1037
1041
|
/**
|
|
1038
|
-
* https://discord.com/developers/
|
|
1042
|
+
* https://docs.discord.com/developers/topics/gateway-events#presence-update
|
|
1039
1043
|
*/
|
|
1040
1044
|
export type GatewayPresenceUpdateDispatch = DataPayload<GatewayDispatchEvents.PresenceUpdate, GatewayPresenceUpdateDispatchData>;
|
|
1041
1045
|
/**
|
|
1042
|
-
* https://discord.com/developers/
|
|
1046
|
+
* https://docs.discord.com/developers/topics/gateway-events#presence-update
|
|
1043
1047
|
*/
|
|
1044
1048
|
export type GatewayPresenceUpdateDispatchData = RawGatewayPresenceUpdate;
|
|
1045
1049
|
/**
|
|
1046
|
-
* https://discord.com/developers/
|
|
1050
|
+
* https://docs.discord.com/developers/topics/gateway-events#stage-instance-create
|
|
1047
1051
|
*/
|
|
1048
1052
|
export type GatewayStageInstanceCreateDispatch = DataPayload<GatewayDispatchEvents.StageInstanceCreate, GatewayStageInstanceCreateDispatchData>;
|
|
1049
1053
|
/**
|
|
1050
|
-
* https://discord.com/developers/
|
|
1054
|
+
* https://docs.discord.com/developers/topics/gateway-events#stage-instance-create
|
|
1051
1055
|
*/
|
|
1052
1056
|
export type GatewayStageInstanceCreateDispatchData = APIStageInstance;
|
|
1053
1057
|
/**
|
|
1054
|
-
* https://discord.com/developers/
|
|
1058
|
+
* https://docs.discord.com/developers/topics/gateway-events#stage-instance-delete
|
|
1055
1059
|
*/
|
|
1056
1060
|
export type GatewayStageInstanceDeleteDispatch = DataPayload<GatewayDispatchEvents.StageInstanceDelete, GatewayStageInstanceDeleteDispatchData>;
|
|
1057
1061
|
/**
|
|
1058
|
-
* https://discord.com/developers/
|
|
1062
|
+
* https://docs.discord.com/developers/topics/gateway-events#stage-instance-delete
|
|
1059
1063
|
*/
|
|
1060
1064
|
export type GatewayStageInstanceDeleteDispatchData = APIStageInstance;
|
|
1061
1065
|
/**
|
|
1062
|
-
* https://discord.com/developers/
|
|
1066
|
+
* https://docs.discord.com/developers/topics/gateway-events#stage-instance-update
|
|
1063
1067
|
*/
|
|
1064
1068
|
export type GatewayStageInstanceUpdateDispatch = DataPayload<GatewayDispatchEvents.StageInstanceUpdate, GatewayStageInstanceUpdateDispatchData>;
|
|
1065
1069
|
/**
|
|
1066
|
-
* https://discord.com/developers/
|
|
1070
|
+
* https://docs.discord.com/developers/topics/gateway-events#stage-instance-update
|
|
1067
1071
|
*/
|
|
1068
1072
|
export type GatewayStageInstanceUpdateDispatchData = APIStageInstance;
|
|
1069
1073
|
/**
|
|
@@ -1082,37 +1086,37 @@ export type GatewaySubscriptionUpdateDispatchData = APISubscription;
|
|
|
1082
1086
|
export type GatewaySubscriptionDeleteDispatch = DataPayload<GatewayDispatchEvents.SubscriptionDelete, GatewaySubscriptionDeleteDispatchData>;
|
|
1083
1087
|
export type GatewaySubscriptionDeleteDispatchData = APISubscription;
|
|
1084
1088
|
/**
|
|
1085
|
-
* https://discord.com/developers/
|
|
1089
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-list-sync
|
|
1086
1090
|
*/
|
|
1087
1091
|
export type GatewayThreadListSyncDispatch = DataPayload<GatewayDispatchEvents.ThreadListSync, GatewayThreadListSyncDispatchData>;
|
|
1088
1092
|
/**
|
|
1089
|
-
* https://discord.com/developers/
|
|
1093
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-list-sync
|
|
1090
1094
|
*/
|
|
1091
1095
|
export type GatewayThreadListSyncDispatchData = RawGatewayThreadListSync;
|
|
1092
1096
|
/**
|
|
1093
|
-
* https://discord.com/developers/
|
|
1097
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-members-update
|
|
1094
1098
|
*/
|
|
1095
1099
|
export type GatewayThreadMembersUpdateDispatch = DataPayload<GatewayDispatchEvents.ThreadMembersUpdate, GatewayThreadMembersUpdateDispatchData>;
|
|
1096
1100
|
/**
|
|
1097
|
-
* https://discord.com/developers/
|
|
1101
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-members-update
|
|
1098
1102
|
*/
|
|
1099
1103
|
export type GatewayThreadMembersUpdateDispatchData = RawGatewayThreadMembersUpdate;
|
|
1100
1104
|
/**
|
|
1101
|
-
* https://discord.com/developers/
|
|
1105
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-member-update
|
|
1102
1106
|
*/
|
|
1103
1107
|
export type GatewayThreadMemberUpdateDispatch = DataPayload<GatewayDispatchEvents.ThreadMemberUpdate, GatewayThreadMemberUpdateDispatchData>;
|
|
1104
1108
|
/**
|
|
1105
|
-
* https://discord.com/developers/
|
|
1109
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-member-update
|
|
1106
1110
|
*/
|
|
1107
1111
|
export type GatewayThreadMemberUpdateDispatchData = APIThreadMember & {
|
|
1108
1112
|
guild_id: Snowflake;
|
|
1109
1113
|
};
|
|
1110
1114
|
/**
|
|
1111
|
-
* https://discord.com/developers/
|
|
1115
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-create
|
|
1112
1116
|
*/
|
|
1113
1117
|
export type GatewayThreadCreateDispatch = DataPayload<GatewayDispatchEvents.ThreadCreate, GatewayThreadCreateDispatchData>;
|
|
1114
1118
|
/**
|
|
1115
|
-
* https://discord.com/developers/
|
|
1119
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-create
|
|
1116
1120
|
*/
|
|
1117
1121
|
export interface GatewayThreadCreateDispatchData extends APIThreadChannel {
|
|
1118
1122
|
/**
|
|
@@ -1121,19 +1125,19 @@ export interface GatewayThreadCreateDispatchData extends APIThreadChannel {
|
|
|
1121
1125
|
newly_created?: true;
|
|
1122
1126
|
}
|
|
1123
1127
|
/**
|
|
1124
|
-
* https://discord.com/developers/
|
|
1128
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-update
|
|
1125
1129
|
*/
|
|
1126
1130
|
export type GatewayThreadUpdateDispatch = DataPayload<GatewayDispatchEvents.ThreadUpdate, GatewayThreadUpdateDispatchData>;
|
|
1127
1131
|
/**
|
|
1128
|
-
* https://discord.com/developers/
|
|
1132
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-update
|
|
1129
1133
|
*/
|
|
1130
1134
|
export type GatewayThreadUpdateDispatchData = APIThreadChannel;
|
|
1131
1135
|
/**
|
|
1132
|
-
* https://discord.com/developers/
|
|
1136
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-delete
|
|
1133
1137
|
*/
|
|
1134
1138
|
export type GatewayThreadDeleteDispatch = DataPayload<GatewayDispatchEvents.ThreadDelete, GatewayThreadDeleteDispatchData>;
|
|
1135
1139
|
/**
|
|
1136
|
-
* https://discord.com/developers/
|
|
1140
|
+
* https://docs.discord.com/developers/topics/gateway-events#thread-delete
|
|
1137
1141
|
*/
|
|
1138
1142
|
export interface GatewayThreadDeleteDispatchData {
|
|
1139
1143
|
/**
|
|
@@ -1151,16 +1155,16 @@ export interface GatewayThreadDeleteDispatchData {
|
|
|
1151
1155
|
/**
|
|
1152
1156
|
* The type of the channel
|
|
1153
1157
|
*
|
|
1154
|
-
* See https://discord.com/developers/
|
|
1158
|
+
* See https://docs.discord.com/developers/resources/channel#channel-object-channel-types
|
|
1155
1159
|
*/
|
|
1156
1160
|
type: ChannelType;
|
|
1157
1161
|
}
|
|
1158
1162
|
/**
|
|
1159
|
-
* https://discord.com/developers/
|
|
1163
|
+
* https://docs.discord.com/developers/topics/gateway-events#typing-start
|
|
1160
1164
|
*/
|
|
1161
1165
|
export type GatewayTypingStartDispatch = DataPayload<GatewayDispatchEvents.TypingStart, GatewayTypingStartDispatchData>;
|
|
1162
1166
|
/**
|
|
1163
|
-
* https://discord.com/developers/
|
|
1167
|
+
* https://docs.discord.com/developers/topics/gateway-events#typing-start
|
|
1164
1168
|
*/
|
|
1165
1169
|
export interface GatewayTypingStartDispatchData {
|
|
1166
1170
|
/**
|
|
@@ -1182,24 +1186,24 @@ export interface GatewayTypingStartDispatchData {
|
|
|
1182
1186
|
/**
|
|
1183
1187
|
* The member who started typing if this happened in a guild
|
|
1184
1188
|
*
|
|
1185
|
-
* See https://discord.com/developers/
|
|
1189
|
+
* See https://docs.discord.com/developers/resources/guild#guild-member-object
|
|
1186
1190
|
*/
|
|
1187
1191
|
member?: APIGuildMember;
|
|
1188
1192
|
}
|
|
1189
1193
|
/**
|
|
1190
|
-
* https://discord.com/developers/
|
|
1194
|
+
* https://docs.discord.com/developers/topics/gateway-events#user-update
|
|
1191
1195
|
*/
|
|
1192
1196
|
export type GatewayUserUpdateDispatch = DataPayload<GatewayDispatchEvents.UserUpdate, GatewayUserUpdateDispatchData>;
|
|
1193
1197
|
/**
|
|
1194
|
-
* https://discord.com/developers/
|
|
1198
|
+
* https://docs.discord.com/developers/topics/gateway-events#user-update
|
|
1195
1199
|
*/
|
|
1196
1200
|
export type GatewayUserUpdateDispatchData = APIUser;
|
|
1197
1201
|
/**
|
|
1198
|
-
* https://discord.com/developers/
|
|
1202
|
+
* https://docs.discord.com/developers/topics/gateway-events#voice-channel-effect-send
|
|
1199
1203
|
*/
|
|
1200
1204
|
export type GatewayVoiceChannelEffectSendDispach = DataPayload<GatewayDispatchEvents.VoiceChannelEffectSend, GatewayVoiceChannelEffectSendDispachData>;
|
|
1201
1205
|
/**
|
|
1202
|
-
* https://discord.com/developers/
|
|
1206
|
+
* https://docs.discord.com/developers/topics/gateway-events#voice-channel-effect-send-voice-channel-effect-send-event-fields
|
|
1203
1207
|
*/
|
|
1204
1208
|
export type GatewayVoiceChannelEffectSendDispachData = GatewayVoiceChannelEffectSendSoundboard | GatewayVoiceChannelEffectSendReaction;
|
|
1205
1209
|
export type _GatewayVoiceChannelEffectSendDispachData = {
|
|
@@ -1223,11 +1227,11 @@ export type _GatewayVoiceChannelEffectSendDispachData = {
|
|
|
1223
1227
|
export type GatewayVoiceChannelEffectSendReaction = Omit<_GatewayVoiceChannelEffectSendDispachData, 'sound_id' | 'sound_volume'>;
|
|
1224
1228
|
export type GatewayVoiceChannelEffectSendSoundboard = _GatewayVoiceChannelEffectSendDispachData;
|
|
1225
1229
|
/**
|
|
1226
|
-
* https://discord.com/developers/
|
|
1230
|
+
* https://docs.discord.com/developers/events/gateway-events#voice-channel-status-update
|
|
1227
1231
|
*/
|
|
1228
1232
|
export type GatewayVoiceChannelStatusUpdateDispatch = DataPayload<GatewayDispatchEvents.VoiceChannelStatusUpdate, GatewayVoiceChannelStatusUpdateDispatchData>;
|
|
1229
1233
|
/**
|
|
1230
|
-
* https://discord.com/developers/
|
|
1234
|
+
* https://docs.discord.com/developers/events/gateway-events#voice-channel-status-update
|
|
1231
1235
|
*/
|
|
1232
1236
|
export interface GatewayVoiceChannelStatusUpdateDispatchData {
|
|
1233
1237
|
/**
|
|
@@ -1244,11 +1248,11 @@ export interface GatewayVoiceChannelStatusUpdateDispatchData {
|
|
|
1244
1248
|
status?: string | null;
|
|
1245
1249
|
}
|
|
1246
1250
|
/**
|
|
1247
|
-
* https://discord.com/developers/
|
|
1251
|
+
* https://docs.discord.com/developers/events/gateway-events#voice-channel-start-time-update
|
|
1248
1252
|
*/
|
|
1249
1253
|
export type GatewayVoiceChannelStartTimeUpdateDispatch = DataPayload<GatewayDispatchEvents.VoiceChannelStartTimeUpdate, GatewayVoiceChannelStartTimeUpdateDispatchData>;
|
|
1250
1254
|
/**
|
|
1251
|
-
* https://discord.com/developers/
|
|
1255
|
+
* https://docs.discord.com/developers/events/gateway-events#voice-channel-start-time-update
|
|
1252
1256
|
*/
|
|
1253
1257
|
export interface GatewayVoiceChannelStartTimeUpdateDispatchData {
|
|
1254
1258
|
/**
|
|
@@ -1265,11 +1269,11 @@ export interface GatewayVoiceChannelStartTimeUpdateDispatchData {
|
|
|
1265
1269
|
voice_start_time?: number | null;
|
|
1266
1270
|
}
|
|
1267
1271
|
/**
|
|
1268
|
-
* https://discord.com/developers/
|
|
1272
|
+
* https://docs.discord.com/developers/events/gateway-events#channel-info
|
|
1269
1273
|
*/
|
|
1270
1274
|
export type GatewayChannelInfoDispatch = DataPayload<GatewayDispatchEvents.ChannelInfo, GatewayChannelInfoDispatchData>;
|
|
1271
1275
|
/**
|
|
1272
|
-
* https://discord.com/developers/
|
|
1276
|
+
* https://docs.discord.com/developers/events/gateway-events#channel-info
|
|
1273
1277
|
*/
|
|
1274
1278
|
export interface GatewayChannelInfoDispatchData {
|
|
1275
1279
|
/**
|
|
@@ -1282,7 +1286,7 @@ export interface GatewayChannelInfoDispatchData {
|
|
|
1282
1286
|
channels: GatewayChannelInfoChannelData[];
|
|
1283
1287
|
}
|
|
1284
1288
|
/**
|
|
1285
|
-
* https://discord.com/developers/
|
|
1289
|
+
* https://docs.discord.com/developers/events/gateway-events#channel-info-channel-info-channel-structure
|
|
1286
1290
|
*/
|
|
1287
1291
|
export interface GatewayChannelInfoChannelData {
|
|
1288
1292
|
/**
|
|
@@ -1299,19 +1303,19 @@ export interface GatewayChannelInfoChannelData {
|
|
|
1299
1303
|
voice_start_time?: number | null;
|
|
1300
1304
|
}
|
|
1301
1305
|
/**
|
|
1302
|
-
* https://discord.com/developers/
|
|
1306
|
+
* https://docs.discord.com/developers/topics/gateway-events#voice-state-update
|
|
1303
1307
|
*/
|
|
1304
1308
|
export type GatewayVoiceStateUpdateDispatch = DataPayload<GatewayDispatchEvents.VoiceStateUpdate, GatewayVoiceStateUpdateDispatchData>;
|
|
1305
1309
|
/**
|
|
1306
|
-
* https://discord.com/developers/
|
|
1310
|
+
* https://docs.discord.com/developers/topics/gateway-events#voice-state-update
|
|
1307
1311
|
*/
|
|
1308
1312
|
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
|
|
1309
1313
|
/**
|
|
1310
|
-
* https://discord.com/developers/
|
|
1314
|
+
* https://docs.discord.com/developers/topics/gateway-events#voice-server-update
|
|
1311
1315
|
*/
|
|
1312
1316
|
export type GatewayVoiceServerUpdateDispatch = DataPayload<GatewayDispatchEvents.VoiceServerUpdate, GatewayVoiceServerUpdateDispatchData>;
|
|
1313
1317
|
/**
|
|
1314
|
-
* https://discord.com/developers/
|
|
1318
|
+
* https://docs.discord.com/developers/topics/gateway-events#voice-server-update
|
|
1315
1319
|
*/
|
|
1316
1320
|
export interface GatewayVoiceServerUpdateDispatchData {
|
|
1317
1321
|
/**
|
|
@@ -1332,11 +1336,11 @@ export interface GatewayVoiceServerUpdateDispatchData {
|
|
|
1332
1336
|
endpoint: string | null;
|
|
1333
1337
|
}
|
|
1334
1338
|
/**
|
|
1335
|
-
* https://discord.com/developers/
|
|
1339
|
+
* https://docs.discord.com/developers/topics/gateway-events#webhooks-update
|
|
1336
1340
|
*/
|
|
1337
1341
|
export type GatewayWebhooksUpdateDispatch = DataPayload<GatewayDispatchEvents.WebhooksUpdate, GatewayWebhooksUpdateDispatchData>;
|
|
1338
1342
|
/**
|
|
1339
|
-
* https://discord.com/developers/
|
|
1343
|
+
* https://docs.discord.com/developers/topics/gateway-events#webhooks-update
|
|
1340
1344
|
*/
|
|
1341
1345
|
export interface GatewayWebhooksUpdateDispatchData {
|
|
1342
1346
|
/**
|
|
@@ -1349,11 +1353,11 @@ export interface GatewayWebhooksUpdateDispatchData {
|
|
|
1349
1353
|
channel_id: Snowflake;
|
|
1350
1354
|
}
|
|
1351
1355
|
/**
|
|
1352
|
-
* https://discord.com/developers/
|
|
1356
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-audit-log-entry-create
|
|
1353
1357
|
*/
|
|
1354
1358
|
export type GatewayGuildAuditLogEntryCreateDispatch = DataPayload<GatewayDispatchEvents.GuildAuditLogEntryCreate, GatewayGuildAuditLogEntryCreateDispatchData>;
|
|
1355
1359
|
/**
|
|
1356
|
-
* https://discord.com/developers/
|
|
1360
|
+
* https://docs.discord.com/developers/topics/gateway-events#guild-audit-log-entry-create
|
|
1357
1361
|
*/
|
|
1358
1362
|
export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLogEntry {
|
|
1359
1363
|
/**
|
|
@@ -1362,11 +1366,11 @@ export interface GatewayGuildAuditLogEntryCreateDispatchData extends APIAuditLog
|
|
|
1362
1366
|
guild_id: Snowflake;
|
|
1363
1367
|
}
|
|
1364
1368
|
/**
|
|
1365
|
-
* https://discord.com/developers/
|
|
1369
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-poll-vote-add
|
|
1366
1370
|
*/
|
|
1367
1371
|
export type GatewayMessagePollVoteAddDispatch = DataPayload<GatewayDispatchEvents.MessagePollVoteAdd, GatewayMessagePollVoteDispatchData>;
|
|
1368
1372
|
/**
|
|
1369
|
-
* https://discord.com/developers/
|
|
1373
|
+
* https://docs.discord.com/developers/topics/gateway-events#message-poll-vote-remove
|
|
1370
1374
|
*/
|
|
1371
1375
|
export type GatewayMessagePollVoteRemoveDispatch = DataPayload<GatewayDispatchEvents.MessagePollVoteRemove, GatewayMessagePollVoteDispatchData>;
|
|
1372
1376
|
export interface GatewayMessagePollVoteDispatchData {
|
|
@@ -1392,25 +1396,25 @@ export interface GatewayMessagePollVoteDispatchData {
|
|
|
1392
1396
|
answer_id: number;
|
|
1393
1397
|
}
|
|
1394
1398
|
/**
|
|
1395
|
-
* https://discord.com/developers/
|
|
1399
|
+
* https://docs.discord.com/developers/topics/gateway#sending-heartbeats
|
|
1396
1400
|
*/
|
|
1397
1401
|
export interface GatewayHeartbeat {
|
|
1398
1402
|
op: GatewayOpcodes.Heartbeat;
|
|
1399
1403
|
d: GatewayHeartbeatData;
|
|
1400
1404
|
}
|
|
1401
1405
|
/**
|
|
1402
|
-
* https://discord.com/developers/
|
|
1406
|
+
* https://docs.discord.com/developers/topics/gateway#sending-heartbeats
|
|
1403
1407
|
*/
|
|
1404
1408
|
export type GatewayHeartbeatData = number | null;
|
|
1405
1409
|
/**
|
|
1406
|
-
* https://discord.com/developers/
|
|
1410
|
+
* https://docs.discord.com/developers/topics/gateway-events#identify
|
|
1407
1411
|
*/
|
|
1408
1412
|
export interface GatewayIdentify {
|
|
1409
1413
|
op: GatewayOpcodes.Identify;
|
|
1410
1414
|
d: GatewayIdentifyData;
|
|
1411
1415
|
}
|
|
1412
1416
|
/**
|
|
1413
|
-
* https://discord.com/developers/
|
|
1417
|
+
* https://docs.discord.com/developers/topics/gateway-events#identify
|
|
1414
1418
|
*/
|
|
1415
1419
|
export interface GatewayIdentifyData {
|
|
1416
1420
|
/**
|
|
@@ -1420,7 +1424,7 @@ export interface GatewayIdentifyData {
|
|
|
1420
1424
|
/**
|
|
1421
1425
|
* Connection properties
|
|
1422
1426
|
*
|
|
1423
|
-
* See https://discord.com/developers/
|
|
1427
|
+
* See https://docs.discord.com/developers/topics/gateway-events#identify-identify-connection-properties
|
|
1424
1428
|
*/
|
|
1425
1429
|
properties: GatewayIdentifyProperties;
|
|
1426
1430
|
/**
|
|
@@ -1439,24 +1443,24 @@ export interface GatewayIdentifyData {
|
|
|
1439
1443
|
/**
|
|
1440
1444
|
* Used for Guild Sharding
|
|
1441
1445
|
*
|
|
1442
|
-
* See https://discord.com/developers/
|
|
1446
|
+
* See https://docs.discord.com/developers/topics/gateway#sharding
|
|
1443
1447
|
*/
|
|
1444
1448
|
shard?: [shard_id: number, shard_count: number];
|
|
1445
1449
|
/**
|
|
1446
1450
|
* Presence structure for initial presence information
|
|
1447
1451
|
*
|
|
1448
|
-
* See https://discord.com/developers/
|
|
1452
|
+
* See https://docs.discord.com/developers/topics/gateway-events#update-presence
|
|
1449
1453
|
*/
|
|
1450
1454
|
presence?: GatewayPresenceUpdateData;
|
|
1451
1455
|
/**
|
|
1452
1456
|
* The Gateway Intents you wish to receive
|
|
1453
1457
|
*
|
|
1454
|
-
* See https://discord.com/developers/
|
|
1458
|
+
* See https://docs.discord.com/developers/topics/gateway#gateway-intents
|
|
1455
1459
|
*/
|
|
1456
1460
|
intents: number;
|
|
1457
1461
|
}
|
|
1458
1462
|
/**
|
|
1459
|
-
* https://discord.com/developers/
|
|
1463
|
+
* https://docs.discord.com/developers/topics/gateway-events#identify-identify-connection-properties
|
|
1460
1464
|
*/
|
|
1461
1465
|
export interface GatewayIdentifyProperties {
|
|
1462
1466
|
/**
|
|
@@ -1473,14 +1477,14 @@ export interface GatewayIdentifyProperties {
|
|
|
1473
1477
|
device: string;
|
|
1474
1478
|
}
|
|
1475
1479
|
/**
|
|
1476
|
-
* https://discord.com/developers/
|
|
1480
|
+
* https://docs.discord.com/developers/topics/gateway-events#resume
|
|
1477
1481
|
*/
|
|
1478
1482
|
export interface GatewayResume {
|
|
1479
1483
|
op: GatewayOpcodes.Resume;
|
|
1480
1484
|
d: GatewayResumeData;
|
|
1481
1485
|
}
|
|
1482
1486
|
/**
|
|
1483
|
-
* https://discord.com/developers/
|
|
1487
|
+
* https://docs.discord.com/developers/topics/gateway-events#resume
|
|
1484
1488
|
*/
|
|
1485
1489
|
export interface GatewayResumeData {
|
|
1486
1490
|
/**
|
|
@@ -1497,7 +1501,7 @@ export interface GatewayResumeData {
|
|
|
1497
1501
|
seq: number;
|
|
1498
1502
|
}
|
|
1499
1503
|
/**
|
|
1500
|
-
* https://discord.com/developers/
|
|
1504
|
+
* https://docs.discord.com/developers/topics/gateway-events#request-guild-members
|
|
1501
1505
|
*/
|
|
1502
1506
|
export interface GatewayRequestGuildMembers {
|
|
1503
1507
|
op: GatewayOpcodes.RequestGuildMembers;
|
|
@@ -1517,7 +1521,7 @@ export interface GatewayRequestGuildMembersDataBase {
|
|
|
1517
1521
|
*
|
|
1518
1522
|
* Nonce can only be up to 32 bytes. If you send an invalid nonce it will be ignored and the reply member_chunk(s) will not have a `nonce` set.
|
|
1519
1523
|
*
|
|
1520
|
-
* See https://discord.com/developers/
|
|
1524
|
+
* See https://docs.discord.com/developers/topics/gateway-events#guild-members-chunk
|
|
1521
1525
|
*/
|
|
1522
1526
|
nonce?: string;
|
|
1523
1527
|
}
|
|
@@ -1539,32 +1543,32 @@ export interface GatewayRequestGuildMembersDataWithQuery extends GatewayRequestG
|
|
|
1539
1543
|
limit: number;
|
|
1540
1544
|
}
|
|
1541
1545
|
/**
|
|
1542
|
-
* https://discord.com/developers/
|
|
1546
|
+
* https://docs.discord.com/developers/topics/gateway-events#request-guild-members
|
|
1543
1547
|
*/
|
|
1544
1548
|
export type GatewayRequestGuildMembersData = GatewayRequestGuildMembersDataWithQuery | GatewayRequestGuildMembersDataWithUserIds;
|
|
1545
1549
|
/**
|
|
1546
|
-
* https://discord.com/developers/
|
|
1550
|
+
* https://docs.discord.com/developers/topics/gateway-events#request-soundboard-sounds
|
|
1547
1551
|
*/
|
|
1548
1552
|
export interface GatewayRequestSoundboardSounds {
|
|
1549
1553
|
op: GatewayOpcodes.RequestSoundboardSounds;
|
|
1550
1554
|
d: GatewayRequestSoundboardSoundsData;
|
|
1551
1555
|
}
|
|
1552
1556
|
/**
|
|
1553
|
-
* https://discord.com/developers/
|
|
1557
|
+
* https://docs.discord.com/developers/topics/gateway-events#request-soundboard-sounds-request-soundboard-sounds-structure
|
|
1554
1558
|
*/
|
|
1555
1559
|
export interface GatewayRequestSoundboardSoundsData {
|
|
1556
1560
|
/** IDs of the guilds to get soundboard sounds for */
|
|
1557
1561
|
guild_ids: string[];
|
|
1558
1562
|
}
|
|
1559
1563
|
/**
|
|
1560
|
-
* https://discord.com/developers/
|
|
1564
|
+
* https://docs.discord.com/developers/events/gateway-events#request-channel-info
|
|
1561
1565
|
*/
|
|
1562
1566
|
export interface GatewayRequestChannelInfo {
|
|
1563
1567
|
op: GatewayOpcodes.RequestChannelInfo;
|
|
1564
1568
|
d: GatewayRequestChannelInfoData;
|
|
1565
1569
|
}
|
|
1566
1570
|
/**
|
|
1567
|
-
* https://discord.com/developers/
|
|
1571
|
+
* https://docs.discord.com/developers/events/gateway-events#request-channel-info-request-channel-info-structure
|
|
1568
1572
|
*/
|
|
1569
1573
|
export interface GatewayRequestChannelInfoData {
|
|
1570
1574
|
/**
|
|
@@ -1577,14 +1581,14 @@ export interface GatewayRequestChannelInfoData {
|
|
|
1577
1581
|
fields: ('status' | 'voice_start_time')[];
|
|
1578
1582
|
}
|
|
1579
1583
|
/**
|
|
1580
|
-
* https://discord.com/developers/
|
|
1584
|
+
* https://docs.discord.com/developers/topics/gateway-events#update-voice-state
|
|
1581
1585
|
*/
|
|
1582
1586
|
export interface GatewayVoiceStateUpdate {
|
|
1583
1587
|
op: GatewayOpcodes.VoiceStateUpdate;
|
|
1584
1588
|
d: GatewayVoiceStateUpdateData;
|
|
1585
1589
|
}
|
|
1586
1590
|
/**
|
|
1587
|
-
* https://discord.com/developers/
|
|
1591
|
+
* https://docs.discord.com/developers/topics/gateway-events#update-voice-state
|
|
1588
1592
|
*/
|
|
1589
1593
|
export interface GatewayVoiceStateUpdateData {
|
|
1590
1594
|
/**
|
|
@@ -1605,14 +1609,14 @@ export interface GatewayVoiceStateUpdateData {
|
|
|
1605
1609
|
self_deaf: boolean;
|
|
1606
1610
|
}
|
|
1607
1611
|
/**
|
|
1608
|
-
* https://discord.com/developers/
|
|
1612
|
+
* https://docs.discord.com/developers/topics/gateway-events#update-presence
|
|
1609
1613
|
*/
|
|
1610
1614
|
export interface GatewayUpdatePresence {
|
|
1611
1615
|
op: GatewayOpcodes.PresenceUpdate;
|
|
1612
1616
|
d: GatewayPresenceUpdateData;
|
|
1613
1617
|
}
|
|
1614
1618
|
/**
|
|
1615
|
-
* https://discord.com/developers/
|
|
1619
|
+
* https://docs.discord.com/developers/topics/gateway-events#update-presence-gateway-presence-update-structure
|
|
1616
1620
|
*/
|
|
1617
1621
|
export interface GatewayPresenceUpdateData {
|
|
1618
1622
|
/**
|
|
@@ -1622,13 +1626,13 @@ export interface GatewayPresenceUpdateData {
|
|
|
1622
1626
|
/**
|
|
1623
1627
|
* The user's activities
|
|
1624
1628
|
*
|
|
1625
|
-
* See https://discord.com/developers/
|
|
1629
|
+
* See https://docs.discord.com/developers/topics/gateway-events#activity-object
|
|
1626
1630
|
*/
|
|
1627
1631
|
activities: GatewayActivityUpdateData[];
|
|
1628
1632
|
/**
|
|
1629
1633
|
* The user's new status
|
|
1630
1634
|
*
|
|
1631
|
-
* See https://discord.com/developers/
|
|
1635
|
+
* See https://docs.discord.com/developers/topics/gateway-events#update-presence-status-types
|
|
1632
1636
|
*/
|
|
1633
1637
|
status: PresenceUpdateStatus;
|
|
1634
1638
|
/**
|
|
@@ -1637,7 +1641,7 @@ export interface GatewayPresenceUpdateData {
|
|
|
1637
1641
|
afk: boolean;
|
|
1638
1642
|
}
|
|
1639
1643
|
/**
|
|
1640
|
-
* https://discord.com/developers/
|
|
1644
|
+
* https://docs.discord.com/developers/topics/gateway-events#activity-object-activity-structure
|
|
1641
1645
|
*/
|
|
1642
1646
|
export type GatewayActivityUpdateData = Pick<GatewayActivity, 'name' | 'state' | 'type' | 'url'>;
|
|
1643
1647
|
interface BasePayload {
|
|
@@ -1687,13 +1691,13 @@ type ReactionData<E extends GatewayDispatchEvents, O extends string = never> = D
|
|
|
1687
1691
|
/**
|
|
1688
1692
|
* The member who reacted if this happened in a guild
|
|
1689
1693
|
*
|
|
1690
|
-
* See https://discord.com/developers/
|
|
1694
|
+
* See https://docs.discord.com/developers/resources/guild#guild-member-object
|
|
1691
1695
|
*/
|
|
1692
1696
|
member?: APIGuildMember;
|
|
1693
1697
|
/**
|
|
1694
1698
|
* The emoji used to react
|
|
1695
1699
|
*
|
|
1696
|
-
* See https://discord.com/developers/
|
|
1700
|
+
* See https://docs.discord.com/developers/resources/emoji#emoji-object
|
|
1697
1701
|
*/
|
|
1698
1702
|
emoji: APIEmoji;
|
|
1699
1703
|
/**
|