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
|
@@ -6,11 +6,11 @@ export interface RESTAPIChannelPatchOverwrite extends RESTPutAPIChannelPermissio
|
|
|
6
6
|
id: Snowflake;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* https://discord.com/developers/
|
|
9
|
+
* https://docs.discord.com/developers/resources/channel#get-channel
|
|
10
10
|
*/
|
|
11
11
|
export type RESTGetAPIChannelResult = APIChannel;
|
|
12
12
|
/**
|
|
13
|
-
* https://discord.com/developers/
|
|
13
|
+
* https://docs.discord.com/developers/resources/channel#modify-channel
|
|
14
14
|
*/
|
|
15
15
|
export interface RESTPatchAPIChannelJSONBody {
|
|
16
16
|
/**
|
|
@@ -79,13 +79,13 @@ export interface RESTPatchAPIChannelJSONBody {
|
|
|
79
79
|
/**
|
|
80
80
|
* Voice region id for the voice or stage channel, automatic when set to `null`
|
|
81
81
|
*
|
|
82
|
-
* See https://discord.com/developers/
|
|
82
|
+
* See https://docs.discord.com/developers/resources/voice#voice-region-object
|
|
83
83
|
*/
|
|
84
84
|
rtc_region?: string | null | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* The camera video quality mode of the voice channel
|
|
87
87
|
*
|
|
88
|
-
* See https://discord.com/developers/
|
|
88
|
+
* See https://docs.discord.com/developers/resources/channel#channel-object-video-quality-modes
|
|
89
89
|
*/
|
|
90
90
|
video_quality_mode?: VideoQualityMode | null | undefined;
|
|
91
91
|
/**
|
|
@@ -161,15 +161,15 @@ export interface RESTPatchAPIChannelJSONBody {
|
|
|
161
161
|
applied_tags?: Snowflake[] | undefined;
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
|
-
* https://discord.com/developers/
|
|
164
|
+
* https://docs.discord.com/developers/resources/channel#modify-channel
|
|
165
165
|
*/
|
|
166
166
|
export type RESTPatchAPIChannelResult = APIChannel;
|
|
167
167
|
/**
|
|
168
|
-
* https://discord.com/developers/
|
|
168
|
+
* https://docs.discord.com/developers/resources/channel#deleteclose-channel
|
|
169
169
|
*/
|
|
170
170
|
export type RESTDeleteAPIChannelResult = APIChannel;
|
|
171
171
|
/**
|
|
172
|
-
* https://discord.com/developers/
|
|
172
|
+
* https://docs.discord.com/developers/resources/channel#get-channel-messages
|
|
173
173
|
*/
|
|
174
174
|
export interface RESTGetAPIChannelMessagesQuery {
|
|
175
175
|
/**
|
|
@@ -192,15 +192,15 @@ export interface RESTGetAPIChannelMessagesQuery {
|
|
|
192
192
|
limit?: number;
|
|
193
193
|
}
|
|
194
194
|
/**
|
|
195
|
-
* https://discord.com/developers/
|
|
195
|
+
* https://docs.discord.com/developers/resources/channel#get-channel-messages
|
|
196
196
|
*/
|
|
197
197
|
export type RESTGetAPIChannelMessagesResult = APIMessage[];
|
|
198
198
|
/**
|
|
199
|
-
* https://discord.com/developers/
|
|
199
|
+
* https://docs.discord.com/developers/resources/channel#get-channel-message
|
|
200
200
|
*/
|
|
201
201
|
export type RESTGetAPIChannelMessageResult = APIMessage;
|
|
202
202
|
/**
|
|
203
|
-
* https://discord.com/developers/
|
|
203
|
+
* https://docs.discord.com/developers/resources/channel#message-reference-object-message-reference-structure
|
|
204
204
|
*/
|
|
205
205
|
export type RESTAPIMessageReference = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<Required<Pick<APIMessageReference, 'message_id'>>> & StrictPartial<APIMessageReference> & {
|
|
206
206
|
/**
|
|
@@ -211,11 +211,16 @@ export type RESTAPIMessageReference = AddUndefinedToPossiblyUndefinedPropertiesO
|
|
|
211
211
|
fail_if_not_exists?: boolean | undefined;
|
|
212
212
|
};
|
|
213
213
|
/**
|
|
214
|
-
* https://discord.com/developers/
|
|
214
|
+
* https://docs.discord.com/developers/resources/message#attachment-object
|
|
215
215
|
*/
|
|
216
|
-
export type RESTAPIAttachment = Partial<Pick<APIAttachment, 'description' | 'duration_secs' | 'filename' | 'title' | 'waveform' | 'id'
|
|
216
|
+
export type RESTAPIAttachment = Partial<Pick<APIAttachment, 'description' | 'duration_secs' | 'filename' | 'title' | 'waveform' | 'id'>> & {
|
|
217
|
+
/**
|
|
218
|
+
* Whether the attachment should be marked as a spoiler
|
|
219
|
+
*/
|
|
220
|
+
is_spoiler?: boolean | undefined;
|
|
221
|
+
};
|
|
217
222
|
/**
|
|
218
|
-
* https://discord.com/developers/
|
|
223
|
+
* https://docs.discord.com/developers/resources/channel#create-message
|
|
219
224
|
*/
|
|
220
225
|
export interface RESTPostAPIChannelMessageJSONBody {
|
|
221
226
|
/**
|
|
@@ -233,31 +238,31 @@ export interface RESTPostAPIChannelMessageJSONBody {
|
|
|
233
238
|
/**
|
|
234
239
|
* Embedded `rich` content (up to 6000 characters)
|
|
235
240
|
*
|
|
236
|
-
* See https://discord.com/developers/
|
|
241
|
+
* See https://docs.discord.com/developers/resources/channel#embed-object
|
|
237
242
|
*/
|
|
238
243
|
embeds?: APIEmbed[] | undefined;
|
|
239
244
|
/**
|
|
240
245
|
* Allowed mentions for a message
|
|
241
246
|
*
|
|
242
|
-
* See https://discord.com/developers/
|
|
247
|
+
* See https://docs.discord.com/developers/resources/channel#allowed-mentions-object
|
|
243
248
|
*/
|
|
244
249
|
allowed_mentions?: APIAllowedMentions | undefined;
|
|
245
250
|
/**
|
|
246
251
|
* Include to make your message a reply
|
|
247
252
|
*
|
|
248
|
-
* See https://discord.com/developers/
|
|
253
|
+
* See https://docs.discord.com/developers/resources/channel#message-reference-object-message-reference-structure
|
|
249
254
|
*/
|
|
250
255
|
message_reference?: RESTAPIMessageReference | undefined;
|
|
251
256
|
/**
|
|
252
257
|
* The components to include with the message
|
|
253
258
|
*
|
|
254
|
-
* See https://discord.com/developers/
|
|
259
|
+
* See https://docs.discord.com/developers/interactions/message-components#component-object
|
|
255
260
|
*/
|
|
256
261
|
components?: APITopLevelComponent[] | undefined;
|
|
257
262
|
/**
|
|
258
263
|
* IDs of up to 3 stickers in the server to send in the message
|
|
259
264
|
*
|
|
260
|
-
* See https://discord.com/developers/
|
|
265
|
+
* See https://docs.discord.com/developers/resources/sticker#sticker-object
|
|
261
266
|
*/
|
|
262
267
|
sticker_ids?: [Snowflake, Snowflake, Snowflake] | [Snowflake, Snowflake] | [Snowflake] | undefined;
|
|
263
268
|
/**
|
|
@@ -283,7 +288,7 @@ export interface RESTPostAPIChannelMessageJSONBody {
|
|
|
283
288
|
shared_client_theme?: APIMessageSharedClientTheme | undefined;
|
|
284
289
|
}
|
|
285
290
|
/**
|
|
286
|
-
* https://discord.com/developers/
|
|
291
|
+
* https://docs.discord.com/developers/resources/channel#create-message
|
|
287
292
|
*/
|
|
288
293
|
export type RESTPostAPIChannelMessageFormDataBody = (Record<`files[${bigint}]`, unknown> & {
|
|
289
294
|
/**
|
|
@@ -292,27 +297,27 @@ export type RESTPostAPIChannelMessageFormDataBody = (Record<`files[${bigint}]`,
|
|
|
292
297
|
payload_json?: string | undefined;
|
|
293
298
|
}) | (Record<`files[${bigint}]`, unknown> & RESTPostAPIChannelMessageJSONBody);
|
|
294
299
|
/**
|
|
295
|
-
* https://discord.com/developers/
|
|
300
|
+
* https://docs.discord.com/developers/resources/channel#create-message
|
|
296
301
|
*/
|
|
297
302
|
export type RESTPostAPIChannelMessageResult = APIMessage;
|
|
298
303
|
/**
|
|
299
|
-
* https://discord.com/developers/
|
|
304
|
+
* https://docs.discord.com/developers/resources/channel#crosspost-message
|
|
300
305
|
*/
|
|
301
306
|
export type RESTPostAPIChannelMessageCrosspostResult = APIMessage;
|
|
302
307
|
/**
|
|
303
|
-
* https://discord.com/developers/
|
|
308
|
+
* https://docs.discord.com/developers/resources/channel#create-reaction
|
|
304
309
|
*/
|
|
305
310
|
export type RESTPutAPIChannelMessageReactionResult = undefined;
|
|
306
311
|
/**
|
|
307
|
-
* https://discord.com/developers/
|
|
312
|
+
* https://docs.discord.com/developers/resources/channel#delete-own-reaction
|
|
308
313
|
*/
|
|
309
314
|
export type RESTDeleteAPIChannelMessageOwnReactionResult = undefined;
|
|
310
315
|
/**
|
|
311
|
-
* https://discord.com/developers/
|
|
316
|
+
* https://docs.discord.com/developers/resources/channel#delete-user-reaction
|
|
312
317
|
*/
|
|
313
318
|
export type RESTDeleteAPIChannelMessageUserReactionResult = undefined;
|
|
314
319
|
/**
|
|
315
|
-
* https://discord.com/developers/
|
|
320
|
+
* https://docs.discord.com/developers/resources/channel#get-reactions
|
|
316
321
|
*/
|
|
317
322
|
export interface RESTGetAPIChannelMessageReactionUsersQuery {
|
|
318
323
|
/**
|
|
@@ -331,26 +336,26 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery {
|
|
|
331
336
|
limit?: number;
|
|
332
337
|
}
|
|
333
338
|
/**
|
|
334
|
-
* https://discord.com/developers/
|
|
339
|
+
* https://docs.discord.com/developers/resources/channel#get-reactions-reaction-types
|
|
335
340
|
*/
|
|
336
341
|
export declare enum ReactionType {
|
|
337
342
|
Normal = 0,
|
|
338
343
|
Super = 1
|
|
339
344
|
}
|
|
340
345
|
/**
|
|
341
|
-
* https://discord.com/developers/
|
|
346
|
+
* https://docs.discord.com/developers/resources/channel#get-reactions
|
|
342
347
|
*/
|
|
343
348
|
export type RESTGetAPIChannelMessageReactionUsersResult = APIUser[];
|
|
344
349
|
/**
|
|
345
|
-
* https://discord.com/developers/
|
|
350
|
+
* https://docs.discord.com/developers/resources/channel#delete-all-reactions
|
|
346
351
|
*/
|
|
347
352
|
export type RESTDeleteAPIChannelAllMessageReactionsResult = undefined;
|
|
348
353
|
/**
|
|
349
|
-
* https://discord.com/developers/
|
|
354
|
+
* https://docs.discord.com/developers/resources/channel#delete-all-reactions-for-emoji
|
|
350
355
|
*/
|
|
351
356
|
export type RESTDeleteAPIChannelMessageReactionResult = undefined;
|
|
352
357
|
/**
|
|
353
|
-
* https://discord.com/developers/
|
|
358
|
+
* https://docs.discord.com/developers/resources/channel#edit-message
|
|
354
359
|
*/
|
|
355
360
|
export interface RESTPatchAPIChannelMessageJSONBody {
|
|
356
361
|
/**
|
|
@@ -360,7 +365,7 @@ export interface RESTPatchAPIChannelMessageJSONBody {
|
|
|
360
365
|
/**
|
|
361
366
|
* Embedded `rich` content (up to 6000 characters)
|
|
362
367
|
*
|
|
363
|
-
* See https://discord.com/developers/
|
|
368
|
+
* See https://docs.discord.com/developers/resources/channel#embed-object
|
|
364
369
|
*/
|
|
365
370
|
embeds?: APIEmbed[] | null | undefined;
|
|
366
371
|
/**
|
|
@@ -369,13 +374,13 @@ export interface RESTPatchAPIChannelMessageJSONBody {
|
|
|
369
374
|
* When specifying flags, ensure to include all previously set flags/bits
|
|
370
375
|
* in addition to ones that you are modifying
|
|
371
376
|
*
|
|
372
|
-
* See https://discord.com/developers/
|
|
377
|
+
* See https://docs.discord.com/developers/resources/channel#message-object-message-flags
|
|
373
378
|
*/
|
|
374
379
|
flags?: MessageFlags | null | undefined;
|
|
375
380
|
/**
|
|
376
381
|
* Allowed mentions for the message
|
|
377
382
|
*
|
|
378
|
-
* See https://discord.com/developers/
|
|
383
|
+
* See https://docs.discord.com/developers/resources/channel#allowed-mentions-object
|
|
379
384
|
*/
|
|
380
385
|
allowed_mentions?: APIAllowedMentions | null | undefined;
|
|
381
386
|
/**
|
|
@@ -383,18 +388,18 @@ export interface RESTPatchAPIChannelMessageJSONBody {
|
|
|
383
388
|
*
|
|
384
389
|
* Starting with API v10, the `attachments` array must contain all attachments that should be present after edit, including **retained and new** attachments provided in the request body.
|
|
385
390
|
*
|
|
386
|
-
* See https://discord.com/developers/
|
|
391
|
+
* See https://docs.discord.com/developers/resources/message#attachment-object
|
|
387
392
|
*/
|
|
388
393
|
attachments?: RESTAPIAttachment[] | undefined;
|
|
389
394
|
/**
|
|
390
395
|
* The components to include with the message
|
|
391
396
|
*
|
|
392
|
-
* See https://discord.com/developers/
|
|
397
|
+
* See https://docs.discord.com/developers/interactions/message-components#component-object
|
|
393
398
|
*/
|
|
394
399
|
components?: APITopLevelComponent[] | null | undefined;
|
|
395
400
|
}
|
|
396
401
|
/**
|
|
397
|
-
* https://discord.com/developers/
|
|
402
|
+
* https://docs.discord.com/developers/resources/channel#edit-message
|
|
398
403
|
*/
|
|
399
404
|
export type RESTPatchAPIChannelMessageFormDataBody = (Record<`files[${bigint}]`, unknown> & {
|
|
400
405
|
/**
|
|
@@ -403,15 +408,15 @@ export type RESTPatchAPIChannelMessageFormDataBody = (Record<`files[${bigint}]`,
|
|
|
403
408
|
payload_json?: string | undefined;
|
|
404
409
|
}) | (Record<`files[${bigint}]`, unknown> & RESTPatchAPIChannelMessageJSONBody);
|
|
405
410
|
/**
|
|
406
|
-
* https://discord.com/developers/
|
|
411
|
+
* https://docs.discord.com/developers/resources/channel#edit-message
|
|
407
412
|
*/
|
|
408
413
|
export type RESTPatchAPIChannelMessageResult = APIMessage;
|
|
409
414
|
/**
|
|
410
|
-
* https://discord.com/developers/
|
|
415
|
+
* https://docs.discord.com/developers/resources/channel#delete-message
|
|
411
416
|
*/
|
|
412
417
|
export type RESTDeleteAPIChannelMessageResult = undefined;
|
|
413
418
|
/**
|
|
414
|
-
* https://discord.com/developers/
|
|
419
|
+
* https://docs.discord.com/developers/resources/channel#bulk-delete-messages
|
|
415
420
|
*/
|
|
416
421
|
export interface RESTPostAPIChannelMessagesBulkDeleteJSONBody {
|
|
417
422
|
/**
|
|
@@ -420,11 +425,11 @@ export interface RESTPostAPIChannelMessagesBulkDeleteJSONBody {
|
|
|
420
425
|
messages: Snowflake[];
|
|
421
426
|
}
|
|
422
427
|
/**
|
|
423
|
-
* https://discord.com/developers/
|
|
428
|
+
* https://docs.discord.com/developers/resources/channel#bulk-delete-messages
|
|
424
429
|
*/
|
|
425
430
|
export type RESTPostAPIChannelMessagesBulkDeleteResult = undefined;
|
|
426
431
|
/**
|
|
427
|
-
* https://discord.com/developers/
|
|
432
|
+
* https://docs.discord.com/developers/resources/channel#edit-channel-permissions
|
|
428
433
|
*/
|
|
429
434
|
export interface RESTPutAPIChannelPermissionJSONBody {
|
|
430
435
|
/**
|
|
@@ -449,17 +454,17 @@ export interface RESTPutAPIChannelPermissionJSONBody {
|
|
|
449
454
|
type: OverwriteType;
|
|
450
455
|
}
|
|
451
456
|
/**
|
|
452
|
-
* https://discord.com/developers/
|
|
457
|
+
* https://docs.discord.com/developers/resources/channel#edit-channel-permissions
|
|
453
458
|
*/
|
|
454
459
|
export type RESTPutAPIChannelPermissionResult = undefined;
|
|
455
460
|
/**
|
|
456
|
-
* https://discord.com/developers/
|
|
461
|
+
* https://docs.discord.com/developers/resources/channel#get-channel-invites
|
|
457
462
|
*/
|
|
458
463
|
export type RESTGetAPIChannelInvitesResult = (APIExtendedInvite & {
|
|
459
464
|
roles?: Pick<APIRole, 'id' | 'name' | 'position' | 'color' | 'colors' | 'icon' | 'unicode_emoji'>;
|
|
460
465
|
})[];
|
|
461
466
|
/**
|
|
462
|
-
* https://discord.com/developers/
|
|
467
|
+
* https://docs.discord.com/developers/resources/channel#create-channel-invite
|
|
463
468
|
*/
|
|
464
469
|
export interface RESTPostAPIChannelInviteJSONBody {
|
|
465
470
|
/**
|
|
@@ -490,7 +495,7 @@ export interface RESTPostAPIChannelInviteJSONBody {
|
|
|
490
495
|
/**
|
|
491
496
|
* The type of target for this voice channel invite
|
|
492
497
|
*
|
|
493
|
-
* See https://discord.com/developers/
|
|
498
|
+
* See https://docs.discord.com/developers/resources/invite#invite-object-invite-target-types
|
|
494
499
|
*/
|
|
495
500
|
target_type?: InviteTargetType | undefined;
|
|
496
501
|
/**
|
|
@@ -518,15 +523,15 @@ export interface RESTPostAPIChannelInviteJSONBody {
|
|
|
518
523
|
role_ids?: Snowflake[] | undefined;
|
|
519
524
|
}
|
|
520
525
|
/**
|
|
521
|
-
* https://discord.com/developers/
|
|
526
|
+
* https://docs.discord.com/developers/resources/channel#create-channel-invite
|
|
522
527
|
*/
|
|
523
528
|
export type RESTPostAPIChannelInviteResult = APIExtendedInvite;
|
|
524
529
|
/**
|
|
525
|
-
* https://discord.com/developers/
|
|
530
|
+
* https://docs.discord.com/developers/resources/channel#delete-channel-permission
|
|
526
531
|
*/
|
|
527
532
|
export type RESTDeleteAPIChannelPermissionResult = undefined;
|
|
528
533
|
/**
|
|
529
|
-
* https://discord.com/developers/
|
|
534
|
+
* https://docs.discord.com/developers/resources/channel#follow-news-channel
|
|
530
535
|
*/
|
|
531
536
|
export interface RESTPostAPIChannelFollowersJSONBody {
|
|
532
537
|
/**
|
|
@@ -535,15 +540,15 @@ export interface RESTPostAPIChannelFollowersJSONBody {
|
|
|
535
540
|
webhook_channel_id: Snowflake;
|
|
536
541
|
}
|
|
537
542
|
/**
|
|
538
|
-
* https://discord.com/developers/
|
|
543
|
+
* https://docs.discord.com/developers/resources/channel#follow-news-channel
|
|
539
544
|
*/
|
|
540
545
|
export type RESTPostAPIChannelFollowersResult = APIFollowedChannel;
|
|
541
546
|
/**
|
|
542
|
-
* https://discord.com/developers/
|
|
547
|
+
* https://docs.discord.com/developers/resources/channel#trigger-typing-indicator
|
|
543
548
|
*/
|
|
544
549
|
export type RESTPostAPIChannelTypingResult = undefined;
|
|
545
550
|
/**
|
|
546
|
-
* https://discord.com/developers/
|
|
551
|
+
* https://docs.discord.com/developers/resources/message#get-channel-pins
|
|
547
552
|
*/
|
|
548
553
|
export interface RESTGetAPIChannelMessagesPinsQuery {
|
|
549
554
|
/**
|
|
@@ -556,22 +561,22 @@ export interface RESTGetAPIChannelMessagesPinsQuery {
|
|
|
556
561
|
limit?: number;
|
|
557
562
|
}
|
|
558
563
|
/**
|
|
559
|
-
* https://discord.com/developers/
|
|
564
|
+
* https://docs.discord.com/developers/resources/message#get-channel-pins
|
|
560
565
|
*/
|
|
561
566
|
export interface RESTGetAPIChannelMessagesPinsResult {
|
|
562
567
|
items: APIMessagePin[];
|
|
563
568
|
has_more: boolean;
|
|
564
569
|
}
|
|
565
570
|
/**
|
|
566
|
-
* https://discord.com/developers/
|
|
571
|
+
* https://docs.discord.com/developers/resources/message#pin-message
|
|
567
572
|
*/
|
|
568
573
|
export type RESTPutAPIChannelMessagesPinResult = undefined;
|
|
569
574
|
/**
|
|
570
|
-
* https://discord.com/developers/
|
|
575
|
+
* https://docs.discord.com/developers/resources/message#unpin-message
|
|
571
576
|
*/
|
|
572
577
|
export type RESTDeleteAPIChannelMessagesPinResult = undefined;
|
|
573
578
|
/**
|
|
574
|
-
* https://discord.com/developers/
|
|
579
|
+
* https://docs.discord.com/developers/resources/channel#group-dm-add-recipient
|
|
575
580
|
*/
|
|
576
581
|
export interface RESTPutAPIChannelRecipientJSONBody {
|
|
577
582
|
/**
|
|
@@ -584,15 +589,15 @@ export interface RESTPutAPIChannelRecipientJSONBody {
|
|
|
584
589
|
nick?: string | undefined;
|
|
585
590
|
}
|
|
586
591
|
/**
|
|
587
|
-
* https://discord.com/developers/
|
|
592
|
+
* https://docs.discord.com/developers/resources/channel#group-dm-add-recipient
|
|
588
593
|
*/
|
|
589
594
|
export type RESTPutAPIChannelRecipientResult = unknown;
|
|
590
595
|
/**
|
|
591
|
-
* https://discord.com/developers/
|
|
596
|
+
* https://docs.discord.com/developers/resources/channel#group-dm-remove-recipient
|
|
592
597
|
*/
|
|
593
598
|
export type RESTDeleteAPIChannelRecipientResult = unknown;
|
|
594
599
|
/**
|
|
595
|
-
* https://discord.com/developers/
|
|
600
|
+
* https://docs.discord.com/developers/resources/channel#start-thread-from-message
|
|
596
601
|
*/
|
|
597
602
|
export interface RESTPostAPIChannelMessagesThreadsJSONBody {
|
|
598
603
|
/**
|
|
@@ -609,7 +614,7 @@ export interface RESTPostAPIChannelMessagesThreadsJSONBody {
|
|
|
609
614
|
rate_limit_per_user?: number | undefined;
|
|
610
615
|
}
|
|
611
616
|
/**
|
|
612
|
-
* https://discord.com/developers/
|
|
617
|
+
* https://docs.discord.com/developers/resources/channel#start-thread-in-forum-or-media-channel
|
|
613
618
|
*/
|
|
614
619
|
export type RESTPostAPIGuildForumThreadsJSONBody = RESTPostAPIChannelMessagesThreadsJSONBody & {
|
|
615
620
|
/**
|
|
@@ -622,7 +627,7 @@ export type RESTPostAPIGuildForumThreadsJSONBody = RESTPostAPIChannelMessagesThr
|
|
|
622
627
|
applied_tags?: Snowflake[] | undefined;
|
|
623
628
|
};
|
|
624
629
|
/**
|
|
625
|
-
* https://discord.com/developers/
|
|
630
|
+
* https://docs.discord.com/developers/resources/channel#start-thread-in-forum-or-media-channel
|
|
626
631
|
*/
|
|
627
632
|
export type RESTPostAPIGuildForumThreadsFormDataBody = RESTPostAPIChannelMessagesThreadsJSONBody & {
|
|
628
633
|
/**
|
|
@@ -631,11 +636,11 @@ export type RESTPostAPIGuildForumThreadsFormDataBody = RESTPostAPIChannelMessage
|
|
|
631
636
|
message: string;
|
|
632
637
|
};
|
|
633
638
|
/**
|
|
634
|
-
* https://discord.com/developers/
|
|
639
|
+
* https://docs.discord.com/developers/resources/channel#start-thread-from-message
|
|
635
640
|
*/
|
|
636
641
|
export type RESTPostAPIChannelMessagesThreadsResult = APIChannel;
|
|
637
642
|
/**
|
|
638
|
-
* https://discord.com/developers/
|
|
643
|
+
* https://docs.discord.com/developers/resources/channel#start-thread-without-message
|
|
639
644
|
*/
|
|
640
645
|
export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMessagesThreadsJSONBody {
|
|
641
646
|
/**
|
|
@@ -644,7 +649,7 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes
|
|
|
644
649
|
* In API v9 and v10, `type` defaults to `PRIVATE_THREAD`.
|
|
645
650
|
* In a future API version this will be changed to be a required field, with no default.
|
|
646
651
|
*
|
|
647
|
-
* See https://discord.com/developers/
|
|
652
|
+
* See https://docs.discord.com/developers/resources/channel#channel-object-channel-types
|
|
648
653
|
*
|
|
649
654
|
* @default ChannelType.PrivateThread
|
|
650
655
|
*/
|
|
@@ -655,19 +660,19 @@ export interface RESTPostAPIChannelThreadsJSONBody extends RESTPostAPIChannelMes
|
|
|
655
660
|
invitable?: boolean | undefined;
|
|
656
661
|
}
|
|
657
662
|
/**
|
|
658
|
-
* https://discord.com/developers/
|
|
663
|
+
* https://docs.discord.com/developers/resources/channel#start-thread-without-message
|
|
659
664
|
*/
|
|
660
665
|
export type RESTPostAPIChannelThreadsResult = APIChannel;
|
|
661
666
|
/**
|
|
662
|
-
* https://discord.com/developers/
|
|
667
|
+
* https://docs.discord.com/developers/resources/channel#join-thread
|
|
663
668
|
*/
|
|
664
669
|
export type RESTPutAPIChannelThreadMembersResult = undefined;
|
|
665
670
|
/**
|
|
666
|
-
* https://discord.com/developers/
|
|
671
|
+
* https://docs.discord.com/developers/resources/channel#leave-thread
|
|
667
672
|
*/
|
|
668
673
|
export type RESTDeleteAPIChannelThreadMembersResult = undefined;
|
|
669
674
|
/**
|
|
670
|
-
* https://discord.com/developers/
|
|
675
|
+
* https://docs.discord.com/developers/resources/channel#get-thread-member
|
|
671
676
|
*/
|
|
672
677
|
export interface RESTGetAPIChannelThreadMemberQuery {
|
|
673
678
|
/**
|
|
@@ -676,11 +681,11 @@ export interface RESTGetAPIChannelThreadMemberQuery {
|
|
|
676
681
|
with_member?: boolean;
|
|
677
682
|
}
|
|
678
683
|
/**
|
|
679
|
-
* https://discord.com/developers/
|
|
684
|
+
* https://docs.discord.com/developers/resources/channel#get-thread-member
|
|
680
685
|
*/
|
|
681
686
|
export type RESTGetAPIChannelThreadMemberResult = APIThreadMember;
|
|
682
687
|
/**
|
|
683
|
-
* https://discord.com/developers/
|
|
688
|
+
* https://docs.discord.com/developers/resources/channel#list-thread-members
|
|
684
689
|
*/
|
|
685
690
|
export interface RESTGetAPIChannelThreadMembersQuery {
|
|
686
691
|
/**
|
|
@@ -697,11 +702,11 @@ export interface RESTGetAPIChannelThreadMembersQuery {
|
|
|
697
702
|
limit?: number;
|
|
698
703
|
}
|
|
699
704
|
/**
|
|
700
|
-
* https://discord.com/developers/
|
|
705
|
+
* https://docs.discord.com/developers/resources/channel#list-thread-members
|
|
701
706
|
*/
|
|
702
707
|
export type RESTGetAPIChannelThreadMembersResult = APIThreadMember[];
|
|
703
708
|
/**
|
|
704
|
-
* https://discord.com/developers/
|
|
709
|
+
* https://docs.discord.com/developers/resources/channel#list-public-archived-threads
|
|
705
710
|
*/
|
|
706
711
|
export interface RESTGetAPIChannelThreadsArchivedQuery {
|
|
707
712
|
/**
|
|
@@ -714,15 +719,15 @@ export interface RESTGetAPIChannelThreadsArchivedQuery {
|
|
|
714
719
|
limit?: number;
|
|
715
720
|
}
|
|
716
721
|
/**
|
|
717
|
-
* https://discord.com/developers/
|
|
722
|
+
* https://docs.discord.com/developers/resources/channel#list-public-archived-threads
|
|
718
723
|
*/
|
|
719
724
|
export type RESTGetAPIChannelThreadsArchivedPublicResult = RESTGetAPIChannelUsersThreadsArchivedResult;
|
|
720
725
|
/**
|
|
721
|
-
* https://discord.com/developers/
|
|
726
|
+
* https://docs.discord.com/developers/resources/channel#list-private-archived-threads
|
|
722
727
|
*/
|
|
723
728
|
export type RESTGetAPIChannelThreadsArchivedPrivateResult = RESTGetAPIChannelUsersThreadsArchivedResult;
|
|
724
729
|
/**
|
|
725
|
-
* https://discord.com/developers/
|
|
730
|
+
* https://docs.discord.com/developers/resources/channel#list-joined-private-archived-threads
|
|
726
731
|
*/
|
|
727
732
|
export interface RESTGetAPIChannelUsersThreadsArchivedResult extends APIThreadList {
|
|
728
733
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReactionType = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* https://discord.com/developers/
|
|
5
|
+
* https://docs.discord.com/developers/resources/channel#get-reactions-reaction-types
|
|
6
6
|
*/
|
|
7
7
|
var ReactionType;
|
|
8
8
|
(function (ReactionType) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { Snowflake } from '..';
|
|
2
2
|
import type { APIEmoji } from '../payloads';
|
|
3
3
|
/**
|
|
4
|
-
* https://discord.com/developers/
|
|
4
|
+
* https://docs.discord.com/developers/resources/emoji#list-guild-emojis
|
|
5
5
|
*/
|
|
6
6
|
export type RESTGetAPIGuildEmojisResult = APIEmoji[];
|
|
7
7
|
/**
|
|
8
|
-
* https://discord.com/developers/
|
|
8
|
+
* https://docs.discord.com/developers/resources/emoji#get-guild-emoji
|
|
9
9
|
*/
|
|
10
10
|
export type RESTGetAPIGuildEmojiResult = APIEmoji;
|
|
11
11
|
/**
|
|
12
|
-
* https://discord.com/developers/
|
|
12
|
+
* https://docs.discord.com/developers/resources/emoji#create-guild-emoji-json-params
|
|
13
13
|
*/
|
|
14
14
|
export interface RESTPostAPIGuildEmojiJSONBody {
|
|
15
15
|
/**
|
|
@@ -19,7 +19,7 @@ export interface RESTPostAPIGuildEmojiJSONBody {
|
|
|
19
19
|
/**
|
|
20
20
|
* The 128x128 emoji image
|
|
21
21
|
*
|
|
22
|
-
* https://discord.com/developers/
|
|
22
|
+
* https://docs.discord.com/developers/reference#image-data
|
|
23
23
|
*/
|
|
24
24
|
image: string;
|
|
25
25
|
/**
|
|
@@ -28,11 +28,11 @@ export interface RESTPostAPIGuildEmojiJSONBody {
|
|
|
28
28
|
roles?: Snowflake[] | undefined;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* https://discord.com/developers/
|
|
31
|
+
* https://docs.discord.com/developers/resources/emoji#create-guild-emoji
|
|
32
32
|
*/
|
|
33
33
|
export type RESTPostAPIGuildEmojiResult = APIEmoji;
|
|
34
34
|
/**
|
|
35
|
-
* https://discord.com/developers/
|
|
35
|
+
* https://docs.discord.com/developers/resources/emoji#modify-guild-emoji
|
|
36
36
|
*/
|
|
37
37
|
export interface RESTPatchAPIGuildEmojiJSONBody {
|
|
38
38
|
/**
|
|
@@ -45,10 +45,10 @@ export interface RESTPatchAPIGuildEmojiJSONBody {
|
|
|
45
45
|
roles?: Snowflake[] | null | undefined;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* https://discord.com/developers/
|
|
48
|
+
* https://docs.discord.com/developers/resources/emoji#modify-guild-emoji
|
|
49
49
|
*/
|
|
50
50
|
export type RESTPatchAPIGuildEmojiResult = APIEmoji;
|
|
51
51
|
/**
|
|
52
|
-
* https://discord.com/developers/
|
|
52
|
+
* https://docs.discord.com/developers/resources/emoji#delete-guild-emoji
|
|
53
53
|
*/
|
|
54
54
|
export type RESTDeleteAPIGuildEmojiResult = undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { APIGatewayBotInfo, APIGatewayInfo } from '../payloads';
|
|
2
2
|
/**
|
|
3
|
-
* https://discord.com/developers/
|
|
3
|
+
* https://docs.discord.com/developers/topics/gateway#get-gateway
|
|
4
4
|
*/
|
|
5
5
|
export type RESTGetAPIGatewayResult = APIGatewayInfo;
|
|
6
6
|
/**
|
|
7
|
-
* https://discord.com/developers/
|
|
7
|
+
* https://docs.discord.com/developers/topics/gateway#get-gateway-bot
|
|
8
8
|
*/
|
|
9
9
|
export type RESTGetAPIGatewayBotResult = APIGatewayBotInfo;
|