@discordeno/rest 19.0.0-next.40c19da → 19.0.0-next.443b2f5
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/dist/types.d.ts +176 -176
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +4 -4
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApplicationCommandPermissions, AtLeastOne, BeginGuildPrune, BigString, Camelize, CreateApplicationCommand, CreateAutoModerationRuleOptions, CreateChannelInvite, CreateForumPostWithMessage, CreateGuild, CreateGuildBan, CreateGuildChannel, CreateGuildEmoji, CreateGuildFromTemplate, CreateGuildRole, CreateGuildStickerOptions, CreateMessageOptions, CreateScheduledEvent, CreateStageInstance, CreateTemplate, DeleteWebhookMessageOptions,
|
|
1
|
+
import type { ApplicationCommandPermissions, AtLeastOne, BeginGuildPrune, BigString, Camelize, CreateApplicationCommand, CreateAutoModerationRuleOptions, CreateChannelInvite, CreateForumPostWithMessage, CreateGuild, CreateGuildBan, CreateGuildChannel, CreateGuildEmoji, CreateGuildFromTemplate, CreateGuildRole, CreateGuildStickerOptions, CreateMessageOptions, CreateScheduledEvent, CreateStageInstance, CreateTemplate, DeleteWebhookMessageOptions, CamelizedDiscordActiveThreads, CamelizedDiscordApplication, CamelizedDiscordApplicationCommand, CamelizedDiscordApplicationCommandPermissions, CamelizedDiscordArchivedThreads, CamelizedDiscordAuditLog, CamelizedDiscordAutoModerationRule, CamelizedDiscordBan, CamelizedDiscordChannel, CamelizedDiscordEmoji, CamelizedDiscordFollowedChannel, CamelizedDiscordGetGatewayBot, CamelizedDiscordGuild, CamelizedDiscordGuildPreview, CamelizedDiscordGuildWidget, CamelizedDiscordGuildWidgetSettings, CamelizedDiscordIntegration, CamelizedDiscordInvite, CamelizedDiscordInviteMetadata, CamelizedDiscordMember, CamelizedDiscordMemberWithUser, CamelizedDiscordMessage, CamelizedDiscordModifyGuildWelcomeScreen, CamelizedDiscordPrunedCount, CamelizedDiscordRole, CamelizedDiscordScheduledEvent, CamelizedDiscordStageInstance, CamelizedDiscordSticker, CamelizedDiscordStickerPack, CamelizedDiscordTemplate, CamelizedDiscordThreadMember, CamelizedDiscordUser, CamelizedDiscordVanityUrl, CamelizedDiscordVoiceRegion, CamelizedDiscordWebhook, CamelizedDiscordWelcomeScreen, EditAutoModerationRuleOptions, EditBotMemberOptions, EditChannelPermissionOverridesOptions, EditGuildRole, EditGuildStickerOptions, EditMessage, EditOwnVoiceState, EditScheduledEvent, EditStageInstanceOptions, EditUserVoiceState, ExecuteWebhook, GetBans, GetGuildAuditLog, GetGuildPruneCountQuery, GetInvite, GetMessagesOptions, GetReactions, GetScheduledEvents, GetScheduledEventUsers, GetWebhookMessageOptions, InteractionCallbackData, InteractionResponse, ListArchivedThreads, ListGuildMembers, MfaLevels, ModifyChannel, ModifyGuild, ModifyGuildChannelPositions, ModifyGuildEmoji, ModifyGuildMember, ModifyGuildTemplate, ModifyRolePositions, ModifyWebhook, SearchMembers, StartThreadWithMessage, StartThreadWithoutMessage, WithReason } from '@discordeno/types';
|
|
2
2
|
import type { InvalidRequestBucket } from './invalidBucket.js';
|
|
3
3
|
import type { Queue } from './queue.js';
|
|
4
4
|
import type { RestRoutes } from './typings/routes.js';
|
|
@@ -159,7 +159,7 @@ export interface RestManager {
|
|
|
159
159
|
*
|
|
160
160
|
* @param guildId - The ID of the guild to create the rule in.
|
|
161
161
|
* @param options - The parameters for the creation of the rule.
|
|
162
|
-
* @returns An instance of the created {@link
|
|
162
|
+
* @returns An instance of the created {@link CamelizedDiscordAutoModerationRule}.
|
|
163
163
|
*
|
|
164
164
|
* @remarks
|
|
165
165
|
* Requires the `MANAGE_GUILD` permission.
|
|
@@ -168,13 +168,13 @@ export interface RestManager {
|
|
|
168
168
|
*
|
|
169
169
|
* @see {@link https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule}
|
|
170
170
|
*/
|
|
171
|
-
createAutomodRule: (guildId: BigString, options: CreateAutoModerationRuleOptions) => Promise<
|
|
171
|
+
createAutomodRule: (guildId: BigString, options: CreateAutoModerationRuleOptions) => Promise<CamelizedDiscordAutoModerationRule>;
|
|
172
172
|
/**
|
|
173
173
|
* Creates a channel within a guild.
|
|
174
174
|
*
|
|
175
175
|
* @param guildId - The ID of the guild to create the channel within.
|
|
176
176
|
* @param options - The parameters for the creation of the channel.
|
|
177
|
-
* @returns An instance of the created {@link
|
|
177
|
+
* @returns An instance of the created {@link CamelizedDiscordChannel}.
|
|
178
178
|
*
|
|
179
179
|
* @remarks
|
|
180
180
|
* Requires the `MANAGE_CHANNELS` permission.
|
|
@@ -187,13 +187,13 @@ export interface RestManager {
|
|
|
187
187
|
*
|
|
188
188
|
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild-channel}
|
|
189
189
|
*/
|
|
190
|
-
createChannel: (guildId: BigString, options: CreateGuildChannel) => Promise<
|
|
190
|
+
createChannel: (guildId: BigString, options: CreateGuildChannel) => Promise<CamelizedDiscordChannel>;
|
|
191
191
|
/**
|
|
192
192
|
* Creates an emoji in a guild.
|
|
193
193
|
*
|
|
194
194
|
* @param guildId - The ID of the guild in which to create the emoji.
|
|
195
195
|
* @param options - The parameters for the creation of the emoji.
|
|
196
|
-
* @returns An instance of the created {@link
|
|
196
|
+
* @returns An instance of the created {@link CamelizedDiscordEmoji}.
|
|
197
197
|
*
|
|
198
198
|
* @remarks
|
|
199
199
|
* Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
|
|
@@ -204,13 +204,13 @@ export interface RestManager {
|
|
|
204
204
|
*
|
|
205
205
|
* @see {@link https://discord.com/developers/docs/resources/emoji#create-guild-emoji}
|
|
206
206
|
*/
|
|
207
|
-
createEmoji: (guildId: BigString, options: CreateGuildEmoji) => Promise<
|
|
207
|
+
createEmoji: (guildId: BigString, options: CreateGuildEmoji) => Promise<CamelizedDiscordEmoji>;
|
|
208
208
|
/**
|
|
209
209
|
* Creates a new thread in a forum channel, and sends a message within the created thread.
|
|
210
210
|
*
|
|
211
211
|
* @param channelId - The ID of the forum channel to create the thread within.
|
|
212
212
|
* @param options - The parameters for the creation of the thread.
|
|
213
|
-
* @returns An instance of {@link
|
|
213
|
+
* @returns An instance of {@link CamelizedDiscordChannel} with a nested {@link Message} object.
|
|
214
214
|
*
|
|
215
215
|
* @remarks
|
|
216
216
|
* Requires the `CREATE_MESSAGES` permission.
|
|
@@ -222,7 +222,7 @@ export interface RestManager {
|
|
|
222
222
|
*
|
|
223
223
|
* @experimental
|
|
224
224
|
*/
|
|
225
|
-
createForumThread: (channelId: BigString, options: CreateForumPostWithMessage) => Promise<
|
|
225
|
+
createForumThread: (channelId: BigString, options: CreateForumPostWithMessage) => Promise<CamelizedDiscordChannel>;
|
|
226
226
|
/**
|
|
227
227
|
* Creates an application command accessible globally; across different guilds and channels.
|
|
228
228
|
*
|
|
@@ -236,12 +236,12 @@ export interface RestManager {
|
|
|
236
236
|
*
|
|
237
237
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#create-global-application-command}
|
|
238
238
|
*/
|
|
239
|
-
createGlobalApplicationCommand: (command: CreateApplicationCommand) => Promise<
|
|
239
|
+
createGlobalApplicationCommand: (command: CreateApplicationCommand) => Promise<CamelizedDiscordApplicationCommand>;
|
|
240
240
|
/**
|
|
241
241
|
* Creates a guild.
|
|
242
242
|
*
|
|
243
243
|
* @param options - The parameters for the creation of the guild.
|
|
244
|
-
* @returns An instance of the created {@link
|
|
244
|
+
* @returns An instance of the created {@link CamelizedDiscordGuild}.
|
|
245
245
|
*
|
|
246
246
|
* @remarks
|
|
247
247
|
* ⚠️ This route can only be used by bots in __fewer than 10 guilds__.
|
|
@@ -250,7 +250,7 @@ export interface RestManager {
|
|
|
250
250
|
*
|
|
251
251
|
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
|
|
252
252
|
*/
|
|
253
|
-
createGuild: (options: CreateGuild) => Promise<
|
|
253
|
+
createGuild: (options: CreateGuild) => Promise<CamelizedDiscordGuild>;
|
|
254
254
|
/**
|
|
255
255
|
* Creates an application command only accessible in a specific guild.
|
|
256
256
|
*
|
|
@@ -264,7 +264,7 @@ export interface RestManager {
|
|
|
264
264
|
*
|
|
265
265
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command}
|
|
266
266
|
*/
|
|
267
|
-
createGuildApplicationCommand: (command: CreateApplicationCommand, guildId: BigString) => Promise<
|
|
267
|
+
createGuildApplicationCommand: (command: CreateApplicationCommand, guildId: BigString) => Promise<CamelizedDiscordApplicationCommand>;
|
|
268
268
|
/**
|
|
269
269
|
* Creates a guild from a template.
|
|
270
270
|
*
|
|
@@ -279,12 +279,12 @@ export interface RestManager {
|
|
|
279
279
|
*
|
|
280
280
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
|
|
281
281
|
*/
|
|
282
|
-
createGuildFromTemplate: (templateCode: string, options: CreateGuildFromTemplate) => Promise<
|
|
282
|
+
createGuildFromTemplate: (templateCode: string, options: CreateGuildFromTemplate) => Promise<CamelizedDiscordGuild>;
|
|
283
283
|
/**
|
|
284
284
|
* Create a new sticker for the guild.
|
|
285
285
|
*
|
|
286
286
|
* @param guildId The ID of the guild to get
|
|
287
|
-
* @return A {@link
|
|
287
|
+
* @return A {@link CamelizedDiscordSticker}
|
|
288
288
|
*
|
|
289
289
|
* @remarks
|
|
290
290
|
* Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
|
|
@@ -294,7 +294,7 @@ export interface RestManager {
|
|
|
294
294
|
*
|
|
295
295
|
* @see {@link https://discord.com/developers/docs/resources/sticker#create-guild-sticker}
|
|
296
296
|
*/
|
|
297
|
-
createGuildSticker: (guildId: BigString, options: CreateGuildStickerOptions) => Promise<
|
|
297
|
+
createGuildSticker: (guildId: BigString, options: CreateGuildStickerOptions) => Promise<CamelizedDiscordSticker>;
|
|
298
298
|
/**
|
|
299
299
|
* Creates a template from a guild.
|
|
300
300
|
*
|
|
@@ -309,13 +309,13 @@ export interface RestManager {
|
|
|
309
309
|
*
|
|
310
310
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
|
|
311
311
|
*/
|
|
312
|
-
createGuildTemplate: (guildId: BigString, options: CreateTemplate) => Promise<
|
|
312
|
+
createGuildTemplate: (guildId: BigString, options: CreateTemplate) => Promise<CamelizedDiscordTemplate>;
|
|
313
313
|
/**
|
|
314
314
|
* Creates an invite to a channel in a guild.
|
|
315
315
|
*
|
|
316
316
|
* @param channelId - The ID of the channel to create the invite to.
|
|
317
317
|
* @param options - The parameters for the creation of the invite.
|
|
318
|
-
* @returns An instance of the created {@link
|
|
318
|
+
* @returns An instance of the created {@link CamelizedDiscordInvite}.
|
|
319
319
|
*
|
|
320
320
|
* @remarks
|
|
321
321
|
* Requires the `CREATE_INSTANT_INVITE` permission.
|
|
@@ -327,13 +327,13 @@ export interface RestManager {
|
|
|
327
327
|
*
|
|
328
328
|
* @see {@link https://discord.com/developers/docs/resources/channel#create-channel-invite}
|
|
329
329
|
*/
|
|
330
|
-
createInvite: (channelId: BigString, options?: CreateChannelInvite) => Promise<
|
|
330
|
+
createInvite: (channelId: BigString, options?: CreateChannelInvite) => Promise<CamelizedDiscordInvite>;
|
|
331
331
|
/**
|
|
332
332
|
* Creates a role in a guild.
|
|
333
333
|
*
|
|
334
334
|
* @param guildId - The ID of the guild to create the role in.
|
|
335
335
|
* @param options - The parameters for the creation of the role.
|
|
336
|
-
* @returns An instance of the created {@link
|
|
336
|
+
* @returns An instance of the created {@link CamelizedDiscordRole}.
|
|
337
337
|
*
|
|
338
338
|
* @remarks
|
|
339
339
|
* Requires the `MANAGE_ROLES` permission.
|
|
@@ -342,7 +342,7 @@ export interface RestManager {
|
|
|
342
342
|
*
|
|
343
343
|
* @see {@link https://discord.com/developers/docs/resources/guild#create-guild-role}
|
|
344
344
|
*/
|
|
345
|
-
createRole: (guildId: BigString, options: CreateGuildRole, reason?: string) => Promise<
|
|
345
|
+
createRole: (guildId: BigString, options: CreateGuildRole, reason?: string) => Promise<CamelizedDiscordRole>;
|
|
346
346
|
/**
|
|
347
347
|
* Creates a scheduled event in a guild.
|
|
348
348
|
*
|
|
@@ -359,12 +359,12 @@ export interface RestManager {
|
|
|
359
359
|
*
|
|
360
360
|
* @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event}
|
|
361
361
|
*/
|
|
362
|
-
createScheduledEvent: (guildId: BigString, options: CreateScheduledEvent) => Promise<
|
|
362
|
+
createScheduledEvent: (guildId: BigString, options: CreateScheduledEvent) => Promise<CamelizedDiscordScheduledEvent>;
|
|
363
363
|
/**
|
|
364
364
|
* Creates a stage instance associated with a stage channel.
|
|
365
365
|
*
|
|
366
366
|
* @param options - The parameters for the creation of the stage instance.
|
|
367
|
-
* @returns An instance of the created {@link
|
|
367
|
+
* @returns An instance of the created {@link CamelizedDiscordStageInstance}.
|
|
368
368
|
*
|
|
369
369
|
* @remarks
|
|
370
370
|
* Requires the user to be a moderator of the stage channel.
|
|
@@ -373,13 +373,13 @@ export interface RestManager {
|
|
|
373
373
|
*
|
|
374
374
|
* @see {@link https://discord.com/developers/docs/resources/stage-instance#create-stage-instance}
|
|
375
375
|
*/
|
|
376
|
-
createStageInstance: (options: CreateStageInstance) => Promise<
|
|
376
|
+
createStageInstance: (options: CreateStageInstance) => Promise<CamelizedDiscordStageInstance>;
|
|
377
377
|
/**
|
|
378
378
|
* Creates a webhook.
|
|
379
379
|
*
|
|
380
380
|
* @param channelId - The ID of the channel to create the webhook in.
|
|
381
381
|
* @param options - The parameters for the creation of the webhook.
|
|
382
|
-
* @returns An instance of the created {@link
|
|
382
|
+
* @returns An instance of the created {@link CamelizedDiscordWebhook}.
|
|
383
383
|
*
|
|
384
384
|
* @remarks
|
|
385
385
|
* Requires the `MANAGE_WEBHOOKS` permission.
|
|
@@ -390,7 +390,7 @@ export interface RestManager {
|
|
|
390
390
|
*
|
|
391
391
|
* @see {@link https://discord.com/developers/docs/resources/webhook#create-webhook}
|
|
392
392
|
*/
|
|
393
|
-
createWebhook: (channelId: BigString, options: CreateWebhook) => Promise<
|
|
393
|
+
createWebhook: (channelId: BigString, options: CreateWebhook) => Promise<CamelizedDiscordWebhook>;
|
|
394
394
|
/**
|
|
395
395
|
* Deletes an automod rule.
|
|
396
396
|
*
|
|
@@ -506,7 +506,7 @@ export interface RestManager {
|
|
|
506
506
|
* Delete a new sticker for the guild.
|
|
507
507
|
*
|
|
508
508
|
* @param guildId The ID of the guild to get
|
|
509
|
-
* @return A {@link
|
|
509
|
+
* @return A {@link CamelizedDiscordSticker}
|
|
510
510
|
*
|
|
511
511
|
* @remarks
|
|
512
512
|
* Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
|
|
@@ -765,14 +765,14 @@ export interface RestManager {
|
|
|
765
765
|
*
|
|
766
766
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions}
|
|
767
767
|
*/
|
|
768
|
-
editApplicationCommandPermissions: (guildId: BigString, commandId: BigString, bearerToken: string, options: ApplicationCommandPermissions[]) => Promise<
|
|
768
|
+
editApplicationCommandPermissions: (guildId: BigString, commandId: BigString, bearerToken: string, options: ApplicationCommandPermissions[]) => Promise<CamelizedDiscordApplicationCommandPermissions>;
|
|
769
769
|
/**
|
|
770
770
|
* Edits an automod rule.
|
|
771
771
|
*
|
|
772
772
|
* @param guildId - The ID of the guild to edit the rule in.
|
|
773
773
|
* @param ruleId - The ID of the rule to edit.
|
|
774
774
|
* @param options - The parameters for the edit of the rule.
|
|
775
|
-
* @returns An instance of the edited {@link
|
|
775
|
+
* @returns An instance of the edited {@link CamelizedDiscordAutoModerationRule}.
|
|
776
776
|
*
|
|
777
777
|
* @remarks
|
|
778
778
|
* Requires the `MANAGE_GUILD` permission.
|
|
@@ -781,7 +781,7 @@ export interface RestManager {
|
|
|
781
781
|
*
|
|
782
782
|
* @see {@link https://discord.com/developers/docs/resources/auto-moderation#modify-auto-moderation-rule}
|
|
783
783
|
*/
|
|
784
|
-
editAutomodRule: (guildId: BigString, ruleId: BigString, options: Partial<EditAutoModerationRuleOptions>) => Promise<
|
|
784
|
+
editAutomodRule: (guildId: BigString, ruleId: BigString, options: Partial<EditAutoModerationRuleOptions>) => Promise<CamelizedDiscordAutoModerationRule>;
|
|
785
785
|
/**
|
|
786
786
|
* Modifies the bot's username or avatar.
|
|
787
787
|
* NOTE: username: if changed may cause the bot's discriminator to be randomized.
|
|
@@ -789,13 +789,13 @@ export interface RestManager {
|
|
|
789
789
|
editBotProfile: (options: {
|
|
790
790
|
username?: string;
|
|
791
791
|
botAvatarURL?: string | null;
|
|
792
|
-
}) => Promise<
|
|
792
|
+
}) => Promise<CamelizedDiscordUser>;
|
|
793
793
|
/**
|
|
794
794
|
* Edits a channel's settings.
|
|
795
795
|
*
|
|
796
796
|
* @param channelId - The ID of the channel to edit.
|
|
797
797
|
* @param options - The parameters for the edit of the channel.
|
|
798
|
-
* @returns An instance of the edited {@link
|
|
798
|
+
* @returns An instance of the edited {@link CamelizedDiscordChannel}.
|
|
799
799
|
*
|
|
800
800
|
* @remarks
|
|
801
801
|
* If editing a channel of type {@link ChannelTypes.GroupDm}:
|
|
@@ -819,7 +819,7 @@ export interface RestManager {
|
|
|
819
819
|
* - Otherwise:
|
|
820
820
|
* - Fires a _Channel Update_ gateway event.
|
|
821
821
|
*/
|
|
822
|
-
editChannel: (channelId: BigString, options: ModifyChannel) => Promise<
|
|
822
|
+
editChannel: (channelId: BigString, options: ModifyChannel) => Promise<CamelizedDiscordChannel>;
|
|
823
823
|
/**
|
|
824
824
|
* Edits the permission overrides for a user or role in a channel.
|
|
825
825
|
*
|
|
@@ -856,7 +856,7 @@ export interface RestManager {
|
|
|
856
856
|
* @param guildId - The ID of the guild in which to edit the emoji.
|
|
857
857
|
* @param id - The ID of the emoji to edit.
|
|
858
858
|
* @param options - The parameters for the edit of the emoji.
|
|
859
|
-
* @returns An instance of the updated {@link
|
|
859
|
+
* @returns An instance of the updated {@link CamelizedDiscordEmoji}.
|
|
860
860
|
*
|
|
861
861
|
* @remarks
|
|
862
862
|
* Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
|
|
@@ -865,7 +865,7 @@ export interface RestManager {
|
|
|
865
865
|
*
|
|
866
866
|
* @see {@link https://discord.com/developers/docs/resources/emoji#modify-guild-emoji}
|
|
867
867
|
*/
|
|
868
|
-
editEmoji: (guildId: BigString, id: BigString, options: ModifyGuildEmoji) => Promise<
|
|
868
|
+
editEmoji: (guildId: BigString, id: BigString, options: ModifyGuildEmoji) => Promise<CamelizedDiscordEmoji>;
|
|
869
869
|
/**
|
|
870
870
|
* Edits a follow-up message to an interaction.
|
|
871
871
|
*
|
|
@@ -883,7 +883,7 @@ export interface RestManager {
|
|
|
883
883
|
*
|
|
884
884
|
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message}
|
|
885
885
|
*/
|
|
886
|
-
editFollowupMessage: (token: string, messageId: BigString, options: InteractionCallbackData) => Promise<
|
|
886
|
+
editFollowupMessage: (token: string, messageId: BigString, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage>;
|
|
887
887
|
/**
|
|
888
888
|
* Edits a global application command.
|
|
889
889
|
*
|
|
@@ -893,7 +893,7 @@ export interface RestManager {
|
|
|
893
893
|
*
|
|
894
894
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command}
|
|
895
895
|
*/
|
|
896
|
-
editGlobalApplicationCommand: (commandId: BigString, options: CreateApplicationCommand) => Promise<
|
|
896
|
+
editGlobalApplicationCommand: (commandId: BigString, options: CreateApplicationCommand) => Promise<CamelizedDiscordApplicationCommand>;
|
|
897
897
|
/**
|
|
898
898
|
* Edits a guild's settings.
|
|
899
899
|
*
|
|
@@ -912,7 +912,7 @@ export interface RestManager {
|
|
|
912
912
|
*
|
|
913
913
|
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild}
|
|
914
914
|
*/
|
|
915
|
-
editGuild: (guildId: BigString, options: ModifyGuild) => Promise<
|
|
915
|
+
editGuild: (guildId: BigString, options: ModifyGuild) => Promise<CamelizedDiscordGuild>;
|
|
916
916
|
/**
|
|
917
917
|
* Edits an application command registered in a guild.
|
|
918
918
|
*
|
|
@@ -923,14 +923,14 @@ export interface RestManager {
|
|
|
923
923
|
*
|
|
924
924
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command}
|
|
925
925
|
*/
|
|
926
|
-
editGuildApplicationCommand: (commandId: BigString, guildId: BigString, options: CreateApplicationCommand) => Promise<
|
|
926
|
+
editGuildApplicationCommand: (commandId: BigString, guildId: BigString, options: CreateApplicationCommand) => Promise<CamelizedDiscordApplicationCommand>;
|
|
927
927
|
/** Modify a guild's MFA level. Requires guild ownership. */
|
|
928
928
|
editGuildMfaLevel: (guildId: BigString, mfaLevel: MfaLevels, reason?: string) => Promise<void>;
|
|
929
929
|
/**
|
|
930
930
|
* Edit the given sticker.
|
|
931
931
|
*
|
|
932
932
|
* @param guildId The ID of the guild to get
|
|
933
|
-
* @return A {@link
|
|
933
|
+
* @return A {@link CamelizedDiscordSticker}
|
|
934
934
|
*
|
|
935
935
|
* @remarks
|
|
936
936
|
* Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
|
|
@@ -938,7 +938,7 @@ export interface RestManager {
|
|
|
938
938
|
*
|
|
939
939
|
* @see {@link https://discord.com/developers/docs/resources/sticker#modify-guild-sticker}
|
|
940
940
|
*/
|
|
941
|
-
editGuildSticker: (guildId: BigString, stickerId: BigString, options: AtLeastOne<EditGuildStickerOptions>) => Promise<
|
|
941
|
+
editGuildSticker: (guildId: BigString, stickerId: BigString, options: AtLeastOne<EditGuildStickerOptions>) => Promise<CamelizedDiscordSticker>;
|
|
942
942
|
/**
|
|
943
943
|
* Edits a template's settings.
|
|
944
944
|
*
|
|
@@ -954,7 +954,7 @@ export interface RestManager {
|
|
|
954
954
|
*
|
|
955
955
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#modify-guild-template}
|
|
956
956
|
*/
|
|
957
|
-
editGuildTemplate: (guildId: BigString, templateCode: string, options: ModifyGuildTemplate) => Promise<
|
|
957
|
+
editGuildTemplate: (guildId: BigString, templateCode: string, options: ModifyGuildTemplate) => Promise<CamelizedDiscordTemplate>;
|
|
958
958
|
/**
|
|
959
959
|
* Edits a message.
|
|
960
960
|
*
|
|
@@ -972,7 +972,7 @@ export interface RestManager {
|
|
|
972
972
|
*
|
|
973
973
|
* @see {@link https://discord.com/developers/docs/resources/channel#edit-message}
|
|
974
974
|
*/
|
|
975
|
-
editMessage: (channelId: BigString, messageId: BigString, options: EditMessage) => Promise<
|
|
975
|
+
editMessage: (channelId: BigString, messageId: BigString, options: EditMessage) => Promise<CamelizedDiscordMessage>;
|
|
976
976
|
/**
|
|
977
977
|
* Edits the initial message response to an interaction.
|
|
978
978
|
*
|
|
@@ -989,14 +989,14 @@ export interface RestManager {
|
|
|
989
989
|
*
|
|
990
990
|
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response}
|
|
991
991
|
*/
|
|
992
|
-
editOriginalInteractionResponse: (token: string, options: InteractionCallbackData) => Promise<
|
|
992
|
+
editOriginalInteractionResponse: (token: string, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage | undefined>;
|
|
993
993
|
/**
|
|
994
994
|
* Edits the original webhook message.
|
|
995
995
|
*
|
|
996
996
|
* @param webhookId - The ID of the webhook to edit the original message of.
|
|
997
997
|
* @param token - The webhook token, used to edit the message.
|
|
998
998
|
* @param options - The parameters for the edit of the message.
|
|
999
|
-
* @returns An instance of the edited {@link
|
|
999
|
+
* @returns An instance of the edited {@link CamelizedDiscordMessage}.
|
|
1000
1000
|
*
|
|
1001
1001
|
* @remarks
|
|
1002
1002
|
* Fires a _Message Update_ gateway event.
|
|
@@ -1005,7 +1005,7 @@ export interface RestManager {
|
|
|
1005
1005
|
*/
|
|
1006
1006
|
editOriginalWebhookMessage: (webhookId: BigString, token: string, options: InteractionCallbackData & {
|
|
1007
1007
|
threadId?: BigString;
|
|
1008
|
-
}) => Promise<
|
|
1008
|
+
}) => Promise<CamelizedDiscordMessage>;
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Edits the voice state of the bot user.
|
|
1011
1011
|
*
|
|
@@ -1030,7 +1030,7 @@ export interface RestManager {
|
|
|
1030
1030
|
* @param guildId - The ID of the guild to edit the role in.
|
|
1031
1031
|
* @param roleId - The ID of the role to edit.
|
|
1032
1032
|
* @param options - The parameters for the edit of the role.
|
|
1033
|
-
* @returns An instance of the edited {@link
|
|
1033
|
+
* @returns An instance of the edited {@link CamelizedDiscordRole}.
|
|
1034
1034
|
*
|
|
1035
1035
|
* @remarks
|
|
1036
1036
|
* Requires the `MANAGE_ROLES` permission.
|
|
@@ -1039,13 +1039,13 @@ export interface RestManager {
|
|
|
1039
1039
|
*
|
|
1040
1040
|
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-role}
|
|
1041
1041
|
*/
|
|
1042
|
-
editRole: (guildId: BigString, roleId: BigString, options: EditGuildRole) => Promise<
|
|
1042
|
+
editRole: (guildId: BigString, roleId: BigString, options: EditGuildRole) => Promise<CamelizedDiscordRole>;
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Edits the positions of a set of roles.
|
|
1045
1045
|
*
|
|
1046
1046
|
* @param guildId - The ID of the guild to edit the role positions in.
|
|
1047
1047
|
* @param options - The parameters for the edit of the role positions.
|
|
1048
|
-
* @returns A collection of {@link
|
|
1048
|
+
* @returns A collection of {@link CamelizedDiscordRole} objects assorted by role ID.
|
|
1049
1049
|
*
|
|
1050
1050
|
* @remarks
|
|
1051
1051
|
* Requires the `MANAGE_ROLES` permission.
|
|
@@ -1054,7 +1054,7 @@ export interface RestManager {
|
|
|
1054
1054
|
*
|
|
1055
1055
|
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-role-positions}
|
|
1056
1056
|
*/
|
|
1057
|
-
editRolePositions: (guildId: BigString, options: ModifyRolePositions[]) => Promise<
|
|
1057
|
+
editRolePositions: (guildId: BigString, options: ModifyRolePositions[]) => Promise<CamelizedDiscordRole[]>;
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Edits a scheduled event.
|
|
1060
1060
|
*
|
|
@@ -1073,12 +1073,12 @@ export interface RestManager {
|
|
|
1073
1073
|
*
|
|
1074
1074
|
* @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event}
|
|
1075
1075
|
*/
|
|
1076
|
-
editScheduledEvent: (guildId: BigString, eventId: BigString, options: Partial<EditScheduledEvent>) => Promise<
|
|
1076
|
+
editScheduledEvent: (guildId: BigString, eventId: BigString, options: Partial<EditScheduledEvent>) => Promise<CamelizedDiscordScheduledEvent>;
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Edits a stage instance.
|
|
1079
1079
|
*
|
|
1080
1080
|
* @param channelId - The ID of the stage channel the stage instance is associated with.
|
|
1081
|
-
* @returns An instance of the updated {@link
|
|
1081
|
+
* @returns An instance of the updated {@link CamelizedDiscordStageInstance}.
|
|
1082
1082
|
*
|
|
1083
1083
|
* @remarks
|
|
1084
1084
|
* Requires the user to be a moderator of the stage channel.
|
|
@@ -1087,7 +1087,7 @@ export interface RestManager {
|
|
|
1087
1087
|
*
|
|
1088
1088
|
* @see {@link https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance}
|
|
1089
1089
|
*/
|
|
1090
|
-
editStageInstance: (channelId: BigString, data: EditStageInstanceOptions) => Promise<
|
|
1090
|
+
editStageInstance: (channelId: BigString, data: EditStageInstanceOptions) => Promise<CamelizedDiscordStageInstance>;
|
|
1091
1091
|
/**
|
|
1092
1092
|
* Edits the voice state of another user.
|
|
1093
1093
|
*
|
|
@@ -1106,7 +1106,7 @@ export interface RestManager {
|
|
|
1106
1106
|
* Edits a webhook.
|
|
1107
1107
|
*
|
|
1108
1108
|
* @param webhookId - The ID of the webhook to edit.
|
|
1109
|
-
* @returns An instance of the edited {@link
|
|
1109
|
+
* @returns An instance of the edited {@link CamelizedDiscordWebhook}.
|
|
1110
1110
|
*
|
|
1111
1111
|
* @remarks
|
|
1112
1112
|
* Requires the `MANAGE_WEBHOOKS` permission.
|
|
@@ -1115,7 +1115,7 @@ export interface RestManager {
|
|
|
1115
1115
|
*
|
|
1116
1116
|
* @see {@link https://discord.com/developers/docs/resources/webhook#edit-webhook}
|
|
1117
1117
|
*/
|
|
1118
|
-
editWebhook: (webhookId: BigString, options: ModifyWebhook) => Promise<
|
|
1118
|
+
editWebhook: (webhookId: BigString, options: ModifyWebhook) => Promise<CamelizedDiscordWebhook>;
|
|
1119
1119
|
/**
|
|
1120
1120
|
* Edits a webhook message.
|
|
1121
1121
|
*
|
|
@@ -1123,7 +1123,7 @@ export interface RestManager {
|
|
|
1123
1123
|
* @param token - The webhook token, used to edit the message.
|
|
1124
1124
|
* @param messageId - The ID of the message to edit.
|
|
1125
1125
|
* @param options - The parameters for the edit of the message.
|
|
1126
|
-
* @returns An instance of the edited {@link
|
|
1126
|
+
* @returns An instance of the edited {@link CamelizedDiscordMessage}.
|
|
1127
1127
|
*
|
|
1128
1128
|
* @remarks
|
|
1129
1129
|
* Fires a _Message Update_ gateway event.
|
|
@@ -1132,13 +1132,13 @@ export interface RestManager {
|
|
|
1132
1132
|
*/
|
|
1133
1133
|
editWebhookMessage: (webhookId: BigString, token: string, messageId: BigString, options: InteractionCallbackData & {
|
|
1134
1134
|
threadId?: BigString;
|
|
1135
|
-
}) => Promise<
|
|
1135
|
+
}) => Promise<CamelizedDiscordMessage>;
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Edits a webhook using the webhook token, thereby bypassing the need for authentication + permissions.
|
|
1138
1138
|
*
|
|
1139
1139
|
* @param webhookId - The ID of the webhook to edit.
|
|
1140
1140
|
* @param token - The webhook token, used to edit the webhook.
|
|
1141
|
-
* @returns An instance of the edited {@link
|
|
1141
|
+
* @returns An instance of the edited {@link CamelizedDiscordWebhook}.
|
|
1142
1142
|
*
|
|
1143
1143
|
* @remarks
|
|
1144
1144
|
* Requires the `MANAGE_WEBHOOKS` permission.
|
|
@@ -1147,7 +1147,7 @@ export interface RestManager {
|
|
|
1147
1147
|
*
|
|
1148
1148
|
* @see {@link https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token}
|
|
1149
1149
|
*/
|
|
1150
|
-
editWebhookWithToken: (webhookId: BigString, token: string, options: Omit<ModifyWebhook, 'channelId'>) => Promise<
|
|
1150
|
+
editWebhookWithToken: (webhookId: BigString, token: string, options: Omit<ModifyWebhook, 'channelId'>) => Promise<CamelizedDiscordWebhook>;
|
|
1151
1151
|
/**
|
|
1152
1152
|
* Edits a guild's welcome screen.
|
|
1153
1153
|
*
|
|
@@ -1162,7 +1162,7 @@ export interface RestManager {
|
|
|
1162
1162
|
*
|
|
1163
1163
|
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen}
|
|
1164
1164
|
*/
|
|
1165
|
-
editWelcomeScreen: (guildId: BigString, options:
|
|
1165
|
+
editWelcomeScreen: (guildId: BigString, options: CamelizedDiscordModifyGuildWelcomeScreen) => Promise<CamelizedDiscordWelcomeScreen>;
|
|
1166
1166
|
/**
|
|
1167
1167
|
* Edits the settings of a guild's widget.
|
|
1168
1168
|
*
|
|
@@ -1176,27 +1176,27 @@ export interface RestManager {
|
|
|
1176
1176
|
*
|
|
1177
1177
|
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-widget}
|
|
1178
1178
|
*/
|
|
1179
|
-
editWidgetSettings: (guildId: BigString, options:
|
|
1179
|
+
editWidgetSettings: (guildId: BigString, options: CamelizedDiscordGuildWidgetSettings) => Promise<CamelizedDiscordGuildWidgetSettings>;
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Executes a webhook, causing a message to be posted in the channel configured for the webhook.
|
|
1182
1182
|
*
|
|
1183
1183
|
* @param webhookId - The ID of the webhook to execute.
|
|
1184
1184
|
* @param token - The webhook token, used to execute the webhook.
|
|
1185
1185
|
* @param options - The parameters for the execution of the webhook.
|
|
1186
|
-
* @returns An instance of the created {@link
|
|
1186
|
+
* @returns An instance of the created {@link CamelizedDiscordMessage}, or `undefined` if the {@link ExecuteWebhook.wait | wait} property of the {@link options} object parameter is set to `false`.
|
|
1187
1187
|
*
|
|
1188
1188
|
* @remarks
|
|
1189
1189
|
* If the webhook channel is a forum channel, you must provide a value for either `threadId` or `threadName`.
|
|
1190
1190
|
*
|
|
1191
1191
|
* @see {@link https://discord.com/developers/docs/resources/webhook#execute-webhook}
|
|
1192
1192
|
*/
|
|
1193
|
-
executeWebhook: (webhookId: BigString, token: string, options: ExecuteWebhook) => Promise<
|
|
1193
|
+
executeWebhook: (webhookId: BigString, token: string, options: ExecuteWebhook) => Promise<CamelizedDiscordMessage | undefined>;
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Follows an announcement channel, allowing messages posted within it to be cross-posted into the target channel.
|
|
1196
1196
|
*
|
|
1197
1197
|
* @param sourceChannelId - The ID of the announcement channel to follow.
|
|
1198
1198
|
* @param targetChannelId - The ID of the target channel - the channel to cross-post to.
|
|
1199
|
-
* @returns An instance of {@link
|
|
1199
|
+
* @returns An instance of {@link CamelizedDiscordFollowedChannel}.
|
|
1200
1200
|
*
|
|
1201
1201
|
* @remarks
|
|
1202
1202
|
* Requires the `MANAGE_WEBHOOKS` permission in the __target channel__.
|
|
@@ -1205,12 +1205,12 @@ export interface RestManager {
|
|
|
1205
1205
|
*
|
|
1206
1206
|
* @see {@link https://discord.com/developers/docs/resources/channel#follow-announcement-channel}
|
|
1207
1207
|
*/
|
|
1208
|
-
followAnnouncement: (sourceChannelId: BigString, targetChannelId: BigString) => Promise<
|
|
1208
|
+
followAnnouncement: (sourceChannelId: BigString, targetChannelId: BigString) => Promise<CamelizedDiscordFollowedChannel>;
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Gets the list of all active threads for a guild.
|
|
1211
1211
|
*
|
|
1212
1212
|
* @param guildId - The ID of the guild to get the threads of.
|
|
1213
|
-
* @returns An instance of {@link
|
|
1213
|
+
* @returns An instance of {@link CamelizedDiscordActiveThreads}.
|
|
1214
1214
|
*
|
|
1215
1215
|
* @remarks
|
|
1216
1216
|
* Returns both public and private threads.
|
|
@@ -1219,9 +1219,9 @@ export interface RestManager {
|
|
|
1219
1219
|
*
|
|
1220
1220
|
* @see {@link https://discord.com/developers/docs/resources/guild#list-active-guild-threads}
|
|
1221
1221
|
*/
|
|
1222
|
-
getActiveThreads: (guildId: BigString) => Promise<
|
|
1222
|
+
getActiveThreads: (guildId: BigString) => Promise<CamelizedDiscordActiveThreads>;
|
|
1223
1223
|
/** Get the applications info */
|
|
1224
|
-
getApplicationInfo: () => Promise<
|
|
1224
|
+
getApplicationInfo: () => Promise<CamelizedDiscordApplication>;
|
|
1225
1225
|
/**
|
|
1226
1226
|
* Gets the permissions of a guild application command.
|
|
1227
1227
|
*
|
|
@@ -1231,7 +1231,7 @@ export interface RestManager {
|
|
|
1231
1231
|
*
|
|
1232
1232
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions}
|
|
1233
1233
|
*/
|
|
1234
|
-
getApplicationCommandPermission: (guildId: BigString, commandId: BigString) => Promise<
|
|
1234
|
+
getApplicationCommandPermission: (guildId: BigString, commandId: BigString) => Promise<CamelizedDiscordApplicationCommandPermissions>;
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Gets the permissions of all application commands registered in a guild by the ID of the guild.
|
|
1237
1237
|
*
|
|
@@ -1240,7 +1240,7 @@ export interface RestManager {
|
|
|
1240
1240
|
*
|
|
1241
1241
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions}
|
|
1242
1242
|
*/
|
|
1243
|
-
getApplicationCommandPermissions: (guildId: BigString) => Promise<
|
|
1243
|
+
getApplicationCommandPermissions: (guildId: BigString) => Promise<CamelizedDiscordApplicationCommandPermissions[]>;
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Gets a guild's audit log.
|
|
1246
1246
|
*
|
|
@@ -1253,57 +1253,57 @@ export interface RestManager {
|
|
|
1253
1253
|
*
|
|
1254
1254
|
* @see {@link https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log}
|
|
1255
1255
|
*/
|
|
1256
|
-
getAuditLog: (guildId: BigString, options?: GetGuildAuditLog) => Promise<
|
|
1256
|
+
getAuditLog: (guildId: BigString, options?: GetGuildAuditLog) => Promise<CamelizedDiscordAuditLog>;
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Gets an automod rule by its ID.
|
|
1259
1259
|
*
|
|
1260
1260
|
* @param guildId - The ID of the guild to get the rule of.
|
|
1261
1261
|
* @param ruleId - The ID of the rule to get.
|
|
1262
|
-
* @returns An instance of {@link
|
|
1262
|
+
* @returns An instance of {@link CamelizedDiscordAutoModerationRule}.
|
|
1263
1263
|
*
|
|
1264
1264
|
* @remarks
|
|
1265
1265
|
* Requires the `MANAGE_GUILD` permission.
|
|
1266
1266
|
*
|
|
1267
1267
|
* @see {@link https://discord.com/developers/docs/resources/auto-moderation#get-auto-moderation-rule}
|
|
1268
1268
|
*/
|
|
1269
|
-
getAutomodRule: (guildId: BigString, ruleId: BigString) => Promise<
|
|
1269
|
+
getAutomodRule: (guildId: BigString, ruleId: BigString) => Promise<CamelizedDiscordAutoModerationRule>;
|
|
1270
1270
|
/**
|
|
1271
1271
|
* Gets the list of automod rules for a guild.
|
|
1272
1272
|
*
|
|
1273
1273
|
* @param guildId - The ID of the guild to get the rules from.
|
|
1274
|
-
* @returns A collection of {@link
|
|
1274
|
+
* @returns A collection of {@link CamelizedDiscordAutoModerationRule} objects assorted by rule ID.
|
|
1275
1275
|
*
|
|
1276
1276
|
* @remarks
|
|
1277
1277
|
* Requires the `MANAGE_GUILD` permission.
|
|
1278
1278
|
*
|
|
1279
1279
|
* @see {@link https://discord.com/developers/docs/resources/auto-moderation#list-auto-moderation-rules-for-guild}
|
|
1280
1280
|
*/
|
|
1281
|
-
getAutomodRules: (guildId: BigString) => Promise<
|
|
1281
|
+
getAutomodRules: (guildId: BigString) => Promise<CamelizedDiscordAutoModerationRule[]>;
|
|
1282
1282
|
/**
|
|
1283
1283
|
* Gets the list of available voice regions.
|
|
1284
1284
|
*
|
|
1285
1285
|
* @returns A collection of {@link VoiceRegions | VoiceRegion} objects assorted by voice region ID.
|
|
1286
1286
|
*/
|
|
1287
|
-
getAvailableVoiceRegions: () => Promise<
|
|
1287
|
+
getAvailableVoiceRegions: () => Promise<CamelizedDiscordVoiceRegion[]>;
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Gets a ban by user ID.
|
|
1290
1290
|
*
|
|
1291
1291
|
* @param guildId - The ID of the guild to get the ban from.
|
|
1292
1292
|
* @param userId - The ID of the user to get the ban for.
|
|
1293
|
-
* @returns An instance of {@link
|
|
1293
|
+
* @returns An instance of {@link CamelizedDiscordBan}.
|
|
1294
1294
|
*
|
|
1295
1295
|
* @remarks
|
|
1296
1296
|
* Requires the `BAN_MEMBERS` permission.
|
|
1297
1297
|
*
|
|
1298
1298
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-ban}
|
|
1299
1299
|
*/
|
|
1300
|
-
getBan: (guildId: BigString, userId: BigString) => Promise<
|
|
1300
|
+
getBan: (guildId: BigString, userId: BigString) => Promise<CamelizedDiscordBan>;
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Gets the list of bans for a guild.
|
|
1303
1303
|
*
|
|
1304
1304
|
* @param guildId - The ID of the guild to get the list of bans for.
|
|
1305
1305
|
* @param options - The parameters for the fetching of the list of bans.
|
|
1306
|
-
* @returns A collection of {@link
|
|
1306
|
+
* @returns A collection of {@link CamelizedDiscordBan} objects assorted by user ID.
|
|
1307
1307
|
*
|
|
1308
1308
|
* @remarks
|
|
1309
1309
|
* Requires the `BAN_MEMBERS` permission.
|
|
@@ -1312,24 +1312,24 @@ export interface RestManager {
|
|
|
1312
1312
|
*
|
|
1313
1313
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-bans}
|
|
1314
1314
|
*/
|
|
1315
|
-
getBans: (guildId: BigString, options?: GetBans) => Promise<
|
|
1315
|
+
getBans: (guildId: BigString, options?: GetBans) => Promise<CamelizedDiscordBan[]>;
|
|
1316
1316
|
/**
|
|
1317
1317
|
* Gets a channel by its ID.
|
|
1318
1318
|
*
|
|
1319
1319
|
* @param channelId - The ID of the channel to get.
|
|
1320
|
-
* @returns An instance of {@link
|
|
1320
|
+
* @returns An instance of {@link CamelizedDiscordChannel}.
|
|
1321
1321
|
*
|
|
1322
1322
|
* @remarks
|
|
1323
1323
|
* If the channel is a thread, a {@link ThreadMember} object is included in the result.
|
|
1324
1324
|
*
|
|
1325
1325
|
* @see {@link https://discord.com/developers/docs/resources/channel#get-channel}
|
|
1326
1326
|
*/
|
|
1327
|
-
getChannel: (channelId: BigString) => Promise<
|
|
1327
|
+
getChannel: (channelId: BigString) => Promise<CamelizedDiscordChannel>;
|
|
1328
1328
|
/**
|
|
1329
1329
|
* Gets the list of invites for a channel.
|
|
1330
1330
|
*
|
|
1331
1331
|
* @param channelId - The ID of the channel to get the invites of.
|
|
1332
|
-
* @returns A collection of {@link
|
|
1332
|
+
* @returns A collection of {@link CamelizedDiscordInviteMetadata} objects assorted by invite code.
|
|
1333
1333
|
*
|
|
1334
1334
|
* @remarks
|
|
1335
1335
|
* Requires the `MANAGE_CHANNELS` permission.
|
|
@@ -1338,59 +1338,59 @@ export interface RestManager {
|
|
|
1338
1338
|
*
|
|
1339
1339
|
* @see {@link https://discord.com/developers/docs/resources/channel#get-channel-invites}
|
|
1340
1340
|
*/
|
|
1341
|
-
getChannelInvites: (channelId: BigString) => Promise<
|
|
1341
|
+
getChannelInvites: (channelId: BigString) => Promise<CamelizedDiscordInviteMetadata[]>;
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Gets the list of channels for a guild.
|
|
1344
1344
|
*
|
|
1345
1345
|
* @param guildId - The ID of the guild to get the channels of.
|
|
1346
|
-
* @returns A collection of {@link
|
|
1346
|
+
* @returns A collection of {@link CamelizedDiscordChannel} objects assorted by channel ID.
|
|
1347
1347
|
*
|
|
1348
1348
|
* @remarks
|
|
1349
1349
|
* Excludes threads.
|
|
1350
1350
|
*
|
|
1351
1351
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-channels}
|
|
1352
1352
|
*/
|
|
1353
|
-
getChannels: (guildId: BigString) => Promise<
|
|
1353
|
+
getChannels: (guildId: BigString) => Promise<CamelizedDiscordChannel[]>;
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Gets a list of webhooks for a channel.
|
|
1356
1356
|
*
|
|
1357
1357
|
* @param channelId - The ID of the channel which to get the webhooks of.
|
|
1358
|
-
* @returns A collection of {@link
|
|
1358
|
+
* @returns A collection of {@link CamelizedDiscordWebhook} objects assorted by webhook ID.
|
|
1359
1359
|
*
|
|
1360
1360
|
* @remarks
|
|
1361
1361
|
* Requires the `MANAGE_WEBHOOKS` permission.
|
|
1362
1362
|
*
|
|
1363
1363
|
* @see {@link https://discord.com/developers/docs/resources/webhook#get-channel-webhooks}
|
|
1364
1364
|
*/
|
|
1365
|
-
getChannelWebhooks: (channelId: BigString) => Promise<
|
|
1365
|
+
getChannelWebhooks: (channelId: BigString) => Promise<CamelizedDiscordWebhook[]>;
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Gets or creates a DM channel with a user.
|
|
1368
1368
|
*
|
|
1369
1369
|
* @param userId - The ID of the user to create the DM channel with.
|
|
1370
|
-
* @returns An instance of {@link
|
|
1370
|
+
* @returns An instance of {@link CamelizedDiscordChannel}.
|
|
1371
1371
|
*
|
|
1372
1372
|
* @see {@link https://discord.com/developers/docs/resources/user#create-dm}
|
|
1373
1373
|
*/
|
|
1374
|
-
getDmChannel: (userId: BigString) => Promise<
|
|
1374
|
+
getDmChannel: (userId: BigString) => Promise<CamelizedDiscordChannel>;
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Gets an emoji by its ID.
|
|
1377
1377
|
*
|
|
1378
1378
|
* @param guildId - The ID of the guild from which to get the emoji.
|
|
1379
1379
|
* @param emojiId - The ID of the emoji to get.
|
|
1380
|
-
* @returns An instance of {@link
|
|
1380
|
+
* @returns An instance of {@link CamelizedDiscordEmoji}.
|
|
1381
1381
|
*
|
|
1382
1382
|
* @see {@link https://discord.com/developers/docs/resources/emoji#get-guild-emoji}
|
|
1383
1383
|
*/
|
|
1384
|
-
getEmoji: (guildId: BigString, emojiId: BigString) => Promise<
|
|
1384
|
+
getEmoji: (guildId: BigString, emojiId: BigString) => Promise<CamelizedDiscordEmoji>;
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Gets the list of emojis for a guild.
|
|
1387
1387
|
*
|
|
1388
1388
|
* @param guildId - The ID of the guild which to get the emojis of.
|
|
1389
|
-
* @returns A collection of {@link
|
|
1389
|
+
* @returns A collection of {@link CamelizedDiscordEmoji} objects assorted by emoji ID.
|
|
1390
1390
|
*
|
|
1391
1391
|
* @see {@link https://discord.com/developers/docs/resources/emoji#list-guild-emojis}
|
|
1392
1392
|
*/
|
|
1393
|
-
getEmojis: (guildId: BigString) => Promise<
|
|
1393
|
+
getEmojis: (guildId: BigString) => Promise<CamelizedDiscordEmoji[]>;
|
|
1394
1394
|
/**
|
|
1395
1395
|
* Gets a follow-up message to an interaction by the ID of the message.
|
|
1396
1396
|
*
|
|
@@ -1407,9 +1407,9 @@ export interface RestManager {
|
|
|
1407
1407
|
*
|
|
1408
1408
|
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message}
|
|
1409
1409
|
*/
|
|
1410
|
-
getFollowupMessage: (token: string, messageId: BigString) => Promise<
|
|
1410
|
+
getFollowupMessage: (token: string, messageId: BigString) => Promise<CamelizedDiscordMessage>;
|
|
1411
1411
|
/** Get the bots Gateway metadata that can help during the operation of large or sharded bots. */
|
|
1412
|
-
getGatewayBot: () => Promise<
|
|
1412
|
+
getGatewayBot: () => Promise<CamelizedDiscordGetGatewayBot>;
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Gets a global application command by its ID.
|
|
1415
1415
|
*
|
|
@@ -1418,7 +1418,7 @@ export interface RestManager {
|
|
|
1418
1418
|
*
|
|
1419
1419
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-command}
|
|
1420
1420
|
*/
|
|
1421
|
-
getGlobalApplicationCommand: (commandId: BigString) => Promise<
|
|
1421
|
+
getGlobalApplicationCommand: (commandId: BigString) => Promise<CamelizedDiscordApplicationCommand>;
|
|
1422
1422
|
/**
|
|
1423
1423
|
* Gets the list of your bot's global application commands.
|
|
1424
1424
|
*
|
|
@@ -1426,7 +1426,7 @@ export interface RestManager {
|
|
|
1426
1426
|
*
|
|
1427
1427
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands}
|
|
1428
1428
|
*/
|
|
1429
|
-
getGlobalApplicationCommands: () => Promise<
|
|
1429
|
+
getGlobalApplicationCommands: () => Promise<CamelizedDiscordApplicationCommand[]>;
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Gets a guild by its ID.
|
|
1432
1432
|
*
|
|
@@ -1438,7 +1438,7 @@ export interface RestManager {
|
|
|
1438
1438
|
*/
|
|
1439
1439
|
getGuild: (guildId: BigString, options?: {
|
|
1440
1440
|
counts?: boolean;
|
|
1441
|
-
}) => Promise<
|
|
1441
|
+
}) => Promise<CamelizedDiscordGuild>;
|
|
1442
1442
|
/**
|
|
1443
1443
|
* Gets a guild application command by its ID.
|
|
1444
1444
|
*
|
|
@@ -1448,7 +1448,7 @@ export interface RestManager {
|
|
|
1448
1448
|
*
|
|
1449
1449
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command}
|
|
1450
1450
|
*/
|
|
1451
|
-
getGuildApplicationCommand: (commandId: BigString, guildId: BigString) => Promise<
|
|
1451
|
+
getGuildApplicationCommand: (commandId: BigString, guildId: BigString) => Promise<CamelizedDiscordApplicationCommand>;
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Gets the list of application commands registered by your bot in a guild.
|
|
1454
1454
|
*
|
|
@@ -1457,7 +1457,7 @@ export interface RestManager {
|
|
|
1457
1457
|
*
|
|
1458
1458
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-commandss}
|
|
1459
1459
|
*/
|
|
1460
|
-
getGuildApplicationCommands: (guildId: BigString) => Promise<
|
|
1460
|
+
getGuildApplicationCommands: (guildId: BigString) => Promise<CamelizedDiscordApplicationCommand[]>;
|
|
1461
1461
|
/**
|
|
1462
1462
|
* Gets the preview of a guild by a guild's ID.
|
|
1463
1463
|
*
|
|
@@ -1469,30 +1469,30 @@ export interface RestManager {
|
|
|
1469
1469
|
*
|
|
1470
1470
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-preview}
|
|
1471
1471
|
*/
|
|
1472
|
-
getGuildPreview: (guildId: BigString) => Promise<
|
|
1472
|
+
getGuildPreview: (guildId: BigString) => Promise<CamelizedDiscordGuildPreview>;
|
|
1473
1473
|
/**
|
|
1474
1474
|
* Returns a sticker object for the given guild and sticker IDs.
|
|
1475
1475
|
*
|
|
1476
1476
|
* @param guildId The ID of the guild to get
|
|
1477
1477
|
* @param stickerId The ID of the sticker to get
|
|
1478
|
-
* @return A {@link
|
|
1478
|
+
* @return A {@link CamelizedDiscordSticker}
|
|
1479
1479
|
*
|
|
1480
1480
|
* @remarks Includes the user field if the bot has the `MANAGE_EMOJIS_AND_STICKERS` permission.
|
|
1481
1481
|
*
|
|
1482
1482
|
* @see {@link https://discord.com/developers/docs/resources/sticker#get-guild-sticker}
|
|
1483
1483
|
*/
|
|
1484
|
-
getGuildSticker: (guildId: BigString, stickerId: BigString) => Promise<
|
|
1484
|
+
getGuildSticker: (guildId: BigString, stickerId: BigString) => Promise<CamelizedDiscordSticker>;
|
|
1485
1485
|
/**
|
|
1486
1486
|
* Returns an array of sticker objects for the given guild.
|
|
1487
1487
|
*
|
|
1488
1488
|
* @param guildId The ID of the guild to get
|
|
1489
|
-
* @returns A collection of {@link
|
|
1489
|
+
* @returns A collection of {@link CamelizedDiscordSticker} objects assorted by sticker ID.
|
|
1490
1490
|
*
|
|
1491
1491
|
* @remarks Includes user fields if the bot has the `MANAGE_EMOJIS_AND_STICKERS` permission.
|
|
1492
1492
|
*
|
|
1493
1493
|
* @see {@link https://discord.com/developers/docs/resources/sticker#list-guild-stickers}
|
|
1494
1494
|
*/
|
|
1495
|
-
getGuildStickers: (guildId: BigString) => Promise<
|
|
1495
|
+
getGuildStickers: (guildId: BigString) => Promise<CamelizedDiscordSticker[]>;
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Gets a template by its code.
|
|
1498
1498
|
*
|
|
@@ -1504,7 +1504,7 @@ export interface RestManager {
|
|
|
1504
1504
|
*
|
|
1505
1505
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-template}
|
|
1506
1506
|
*/
|
|
1507
|
-
getGuildTemplate: (templateCode: string) => Promise<
|
|
1507
|
+
getGuildTemplate: (templateCode: string) => Promise<CamelizedDiscordTemplate>;
|
|
1508
1508
|
/**
|
|
1509
1509
|
* Gets the list of templates for a guild.
|
|
1510
1510
|
*
|
|
@@ -1516,19 +1516,19 @@ export interface RestManager {
|
|
|
1516
1516
|
*
|
|
1517
1517
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-templates}
|
|
1518
1518
|
*/
|
|
1519
|
-
getGuildTemplates: (guildId: BigString) => Promise<
|
|
1519
|
+
getGuildTemplates: (guildId: BigString) => Promise<CamelizedDiscordTemplate[]>;
|
|
1520
1520
|
/**
|
|
1521
1521
|
* Gets the list of webhooks for a guild.
|
|
1522
1522
|
*
|
|
1523
1523
|
* @param guildId - The ID of the guild to get the list of webhooks for.
|
|
1524
|
-
* @returns A collection of {@link
|
|
1524
|
+
* @returns A collection of {@link CamelizedDiscordWebhook} objects assorted by webhook ID.
|
|
1525
1525
|
*
|
|
1526
1526
|
* @remarks
|
|
1527
1527
|
* Requires the `MANAGE_WEBHOOKS` permission.
|
|
1528
1528
|
*
|
|
1529
1529
|
* @see {@link https://discord.com/developers/docs/resources/webhook#get-guild-webhooks}
|
|
1530
1530
|
*/
|
|
1531
|
-
getGuildWebhooks: (guildId: BigString) => Promise<
|
|
1531
|
+
getGuildWebhooks: (guildId: BigString) => Promise<CamelizedDiscordWebhook[]>;
|
|
1532
1532
|
/**
|
|
1533
1533
|
* Gets the list of integrations attached to a guild.
|
|
1534
1534
|
*
|
|
@@ -1540,17 +1540,17 @@ export interface RestManager {
|
|
|
1540
1540
|
*
|
|
1541
1541
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-integrations}
|
|
1542
1542
|
*/
|
|
1543
|
-
getIntegrations: (guildId: BigString) => Promise<
|
|
1543
|
+
getIntegrations: (guildId: BigString) => Promise<CamelizedDiscordIntegration[]>;
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Gets an invite to a channel by its invite code.
|
|
1546
1546
|
*
|
|
1547
1547
|
* @param inviteCode - The invite code of the invite to get.
|
|
1548
1548
|
* @param options - The parameters for the fetching of the invite.
|
|
1549
|
-
* @returns An instance of {@link
|
|
1549
|
+
* @returns An instance of {@link CamelizedDiscordInviteMetadata}.
|
|
1550
1550
|
*
|
|
1551
1551
|
* @see {@link https://discord.com/developers/docs/resources/invite#get-invite}
|
|
1552
1552
|
*/
|
|
1553
|
-
getInvite: (inviteCode: string, options?: GetInvite) => Promise<
|
|
1553
|
+
getInvite: (inviteCode: string, options?: GetInvite) => Promise<CamelizedDiscordInviteMetadata>;
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Gets the list of invites for a guild.
|
|
1556
1556
|
*
|
|
@@ -1562,7 +1562,7 @@ export interface RestManager {
|
|
|
1562
1562
|
*
|
|
1563
1563
|
* @see {@link https://discord.com/developers/docs/resources/invite#get-invites}
|
|
1564
1564
|
*/
|
|
1565
|
-
getInvites: (guildId: BigString) => Promise<
|
|
1565
|
+
getInvites: (guildId: BigString) => Promise<CamelizedDiscordInviteMetadata[]>;
|
|
1566
1566
|
/**
|
|
1567
1567
|
* Gets a message from a channel by the ID of the message.
|
|
1568
1568
|
*
|
|
@@ -1578,7 +1578,7 @@ export interface RestManager {
|
|
|
1578
1578
|
*
|
|
1579
1579
|
* @see {@link https://discord.com/developers/docs/resources/channel#get-channel-message}
|
|
1580
1580
|
*/
|
|
1581
|
-
getMessage: (channelId: BigString, messageId: BigString) => Promise<
|
|
1581
|
+
getMessage: (channelId: BigString, messageId: BigString) => Promise<CamelizedDiscordMessage>;
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Gets multiple messages from a channel.
|
|
1584
1584
|
*
|
|
@@ -1594,7 +1594,7 @@ export interface RestManager {
|
|
|
1594
1594
|
*
|
|
1595
1595
|
* @see {@link https://discord.com/developers/docs/resources/channel#get-channel-messages}
|
|
1596
1596
|
*/
|
|
1597
|
-
getMessages: (channelId: BigString, options?: GetMessagesOptions) => Promise<
|
|
1597
|
+
getMessages: (channelId: BigString, options?: GetMessagesOptions) => Promise<CamelizedDiscordMessage[]>;
|
|
1598
1598
|
/**
|
|
1599
1599
|
* Returns the list of sticker packs available to Nitro subscribers.
|
|
1600
1600
|
*
|
|
@@ -1602,7 +1602,7 @@ export interface RestManager {
|
|
|
1602
1602
|
*
|
|
1603
1603
|
* @see {@link https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs}
|
|
1604
1604
|
*/
|
|
1605
|
-
getNitroStickerPacks: () => Promise<
|
|
1605
|
+
getNitroStickerPacks: () => Promise<CamelizedDiscordStickerPack[]>;
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Gets the initial message response to an interaction.
|
|
1608
1608
|
*
|
|
@@ -1618,7 +1618,7 @@ export interface RestManager {
|
|
|
1618
1618
|
*
|
|
1619
1619
|
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response}
|
|
1620
1620
|
*/
|
|
1621
|
-
getOriginalInteractionResponse: (token: string) => Promise<
|
|
1621
|
+
getOriginalInteractionResponse: (token: string) => Promise<CamelizedDiscordMessage>;
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Gets the pinned messages for a channel.
|
|
1624
1624
|
*
|
|
@@ -1633,13 +1633,13 @@ export interface RestManager {
|
|
|
1633
1633
|
*
|
|
1634
1634
|
* @see {@link https://discord.com/developers/docs/resources/channel#get-pinned-messages}
|
|
1635
1635
|
*/
|
|
1636
|
-
getPinnedMessages: (channelId: BigString) => Promise<
|
|
1636
|
+
getPinnedMessages: (channelId: BigString) => Promise<CamelizedDiscordMessage[]>;
|
|
1637
1637
|
/**
|
|
1638
1638
|
* Gets the list of private archived threads for a channel.
|
|
1639
1639
|
*
|
|
1640
1640
|
* @param channelId - The ID of the channel to get the archived threads for.
|
|
1641
1641
|
* @param options - The parameters for the fetching of threads.
|
|
1642
|
-
* @returns An instance of {@link
|
|
1642
|
+
* @returns An instance of {@link CamelizedDiscordArchivedThreads}.
|
|
1643
1643
|
*
|
|
1644
1644
|
* @remarks
|
|
1645
1645
|
* Requires the `READ_MESSAGE_HISTORY` permission.
|
|
@@ -1651,13 +1651,13 @@ export interface RestManager {
|
|
|
1651
1651
|
*
|
|
1652
1652
|
* @see {@link https://discord.com/developers/docs/resources/channel#list-private-archived-threads}
|
|
1653
1653
|
*/
|
|
1654
|
-
getPrivateArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<
|
|
1654
|
+
getPrivateArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<CamelizedDiscordArchivedThreads>;
|
|
1655
1655
|
/**
|
|
1656
1656
|
* Gets the list of private archived threads the bot is a member of for a channel.
|
|
1657
1657
|
*
|
|
1658
1658
|
* @param channelId - The ID of the channel to get the archived threads for.
|
|
1659
1659
|
* @param options - The parameters for the fetching of threads.
|
|
1660
|
-
* @returns An instance of {@link
|
|
1660
|
+
* @returns An instance of {@link CamelizedDiscordArchivedThreads}.
|
|
1661
1661
|
*
|
|
1662
1662
|
* @remarks
|
|
1663
1663
|
* Requires the `READ_MESSAGE_HISTORY` permission.
|
|
@@ -1668,7 +1668,7 @@ export interface RestManager {
|
|
|
1668
1668
|
*
|
|
1669
1669
|
* @see {@link https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads}
|
|
1670
1670
|
*/
|
|
1671
|
-
getPrivateJoinedArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<
|
|
1671
|
+
getPrivateJoinedArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<CamelizedDiscordArchivedThreads>;
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Gets the number of members that would be kicked from a guild during pruning.
|
|
1674
1674
|
*
|
|
@@ -1681,7 +1681,7 @@ export interface RestManager {
|
|
|
1681
1681
|
*
|
|
1682
1682
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-prune-count}
|
|
1683
1683
|
*/
|
|
1684
|
-
getPruneCount: (guildId: BigString, options?: GetGuildPruneCountQuery) => Promise<
|
|
1684
|
+
getPruneCount: (guildId: BigString, options?: GetGuildPruneCountQuery) => Promise<CamelizedDiscordPrunedCount>;
|
|
1685
1685
|
/**
|
|
1686
1686
|
* Gets the list of public archived threads for a channel.
|
|
1687
1687
|
*
|
|
@@ -1699,7 +1699,7 @@ export interface RestManager {
|
|
|
1699
1699
|
*
|
|
1700
1700
|
* @see {@link https://discord.com/developers/docs/resources/channel#list-public-archived-threads}
|
|
1701
1701
|
*/
|
|
1702
|
-
getPublicArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<
|
|
1702
|
+
getPublicArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<CamelizedDiscordArchivedThreads>;
|
|
1703
1703
|
/**
|
|
1704
1704
|
* Gets the list of roles for a guild.
|
|
1705
1705
|
*
|
|
@@ -1711,7 +1711,7 @@ export interface RestManager {
|
|
|
1711
1711
|
*
|
|
1712
1712
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-roles}
|
|
1713
1713
|
*/
|
|
1714
|
-
getRoles: (guildId: BigString) => Promise<
|
|
1714
|
+
getRoles: (guildId: BigString) => Promise<CamelizedDiscordRole[]>;
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Gets a scheduled event by its ID.
|
|
1717
1717
|
*
|
|
@@ -1724,7 +1724,7 @@ export interface RestManager {
|
|
|
1724
1724
|
*/
|
|
1725
1725
|
getScheduledEvent: (guildId: BigString, eventId: BigString, options?: {
|
|
1726
1726
|
withUserCount?: boolean;
|
|
1727
|
-
}) => Promise<
|
|
1727
|
+
}) => Promise<CamelizedDiscordScheduledEvent>;
|
|
1728
1728
|
/**
|
|
1729
1729
|
* Gets the list of scheduled events for a guild.
|
|
1730
1730
|
*
|
|
@@ -1734,7 +1734,7 @@ export interface RestManager {
|
|
|
1734
1734
|
*
|
|
1735
1735
|
* @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild}
|
|
1736
1736
|
*/
|
|
1737
|
-
getScheduledEvents: (guildId: BigString, options?: GetScheduledEvents) => Promise<
|
|
1737
|
+
getScheduledEvents: (guildId: BigString, options?: GetScheduledEvents) => Promise<CamelizedDiscordScheduledEvent[]>;
|
|
1738
1738
|
/**
|
|
1739
1739
|
* Gets the list of subscribers to a scheduled event from a guild.
|
|
1740
1740
|
*
|
|
@@ -1751,51 +1751,51 @@ export interface RestManager {
|
|
|
1751
1751
|
* @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users}
|
|
1752
1752
|
*/
|
|
1753
1753
|
getScheduledEventUsers: (guildId: BigString, eventId: BigString, options?: GetScheduledEventUsers) => Promise<Array<{
|
|
1754
|
-
user:
|
|
1755
|
-
member?:
|
|
1754
|
+
user: CamelizedDiscordUser;
|
|
1755
|
+
member?: CamelizedDiscordMember;
|
|
1756
1756
|
}>>;
|
|
1757
1757
|
/** Get the bots Gateway metadata that can help during the operation of large or sharded bots. */
|
|
1758
|
-
getSessionInfo: () => Promise<
|
|
1758
|
+
getSessionInfo: () => Promise<CamelizedDiscordGetGatewayBot>;
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Gets the stage instance associated with a stage channel, if one exists.
|
|
1761
1761
|
*
|
|
1762
1762
|
* @param channelId - The ID of the stage channel the stage instance is associated with.
|
|
1763
|
-
* @returns An instance of {@link
|
|
1763
|
+
* @returns An instance of {@link CamelizedDiscordStageInstance}.
|
|
1764
1764
|
*
|
|
1765
1765
|
* @see {@link https://discord.com/developers/docs/resources/stage-instance#get-stage-instance}
|
|
1766
1766
|
*/
|
|
1767
|
-
getStageInstance: (channelId: BigString) => Promise<
|
|
1767
|
+
getStageInstance: (channelId: BigString) => Promise<CamelizedDiscordStageInstance>;
|
|
1768
1768
|
/**
|
|
1769
1769
|
* Returns a sticker object for the given sticker ID.
|
|
1770
1770
|
*
|
|
1771
1771
|
* @param stickerId The ID of the sticker to get
|
|
1772
|
-
* @returns A {@link
|
|
1772
|
+
* @returns A {@link CamelizedDiscordSticker}
|
|
1773
1773
|
*
|
|
1774
1774
|
* @see {@link https://discord.com/developers/docs/resources/sticker#get-sticker}
|
|
1775
1775
|
*/
|
|
1776
|
-
getSticker: (stickerId: BigString) => Promise<
|
|
1776
|
+
getSticker: (stickerId: BigString) => Promise<CamelizedDiscordSticker>;
|
|
1777
1777
|
/**
|
|
1778
1778
|
* Gets a thread member by their user ID.
|
|
1779
1779
|
*
|
|
1780
1780
|
* @param channelId - The ID of the thread to get the thread member of.
|
|
1781
1781
|
* @param userId - The user ID of the thread member to get.
|
|
1782
|
-
* @returns An instance of {@link
|
|
1782
|
+
* @returns An instance of {@link CamelizedDiscordThreadMember}.
|
|
1783
1783
|
*
|
|
1784
1784
|
* @see {@link https://discord.com/developers/docs/resources/channel#get-thread-member}
|
|
1785
1785
|
*/
|
|
1786
|
-
getThreadMember: (channelId: BigString, userId: BigString) => Promise<
|
|
1786
|
+
getThreadMember: (channelId: BigString, userId: BigString) => Promise<CamelizedDiscordThreadMember>;
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Gets the list of thread members for a thread.
|
|
1789
1789
|
*
|
|
1790
1790
|
* @param channelId - The ID of the thread to get the thread members of.
|
|
1791
|
-
* @returns A collection of {@link
|
|
1791
|
+
* @returns A collection of {@link CamelizedDiscordThreadMember} assorted by user ID.
|
|
1792
1792
|
*
|
|
1793
1793
|
* @remarks
|
|
1794
1794
|
* Requires the application to have the `GUILD_MEMBERS` privileged intent enabled.
|
|
1795
1795
|
*
|
|
1796
1796
|
* @see {@link https://discord.com/developers/docs/resources/channel#list-thread-members}
|
|
1797
1797
|
*/
|
|
1798
|
-
getThreadMembers: (channelId: BigString) => Promise<
|
|
1798
|
+
getThreadMembers: (channelId: BigString) => Promise<CamelizedDiscordThreadMember[]>;
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Gets the list of users that reacted with an emoji to a message.
|
|
1801
1801
|
*
|
|
@@ -1807,14 +1807,14 @@ export interface RestManager {
|
|
|
1807
1807
|
*
|
|
1808
1808
|
* @see {@link https://discord.com/developers/docs/resources/channel#get-reactions}
|
|
1809
1809
|
*/
|
|
1810
|
-
getReactions: (channelId: BigString, messageId: BigString, reaction: string, options?: GetReactions) => Promise<
|
|
1810
|
+
getReactions: (channelId: BigString, messageId: BigString, reaction: string, options?: GetReactions) => Promise<CamelizedDiscordUser[]>;
|
|
1811
1811
|
/**
|
|
1812
1812
|
* Get a user's data from the api
|
|
1813
1813
|
*
|
|
1814
1814
|
* @param id The user's id
|
|
1815
|
-
* @returns {
|
|
1815
|
+
* @returns {CamelizedDiscordUser}
|
|
1816
1816
|
*/
|
|
1817
|
-
getUser: (id: BigString) => Promise<
|
|
1817
|
+
getUser: (id: BigString) => Promise<CamelizedDiscordUser>;
|
|
1818
1818
|
/**
|
|
1819
1819
|
* Gets information about the vanity url of a guild.
|
|
1820
1820
|
*
|
|
@@ -1828,7 +1828,7 @@ export interface RestManager {
|
|
|
1828
1828
|
*
|
|
1829
1829
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-vanity-url}
|
|
1830
1830
|
*/
|
|
1831
|
-
getVanityUrl: (guildId: BigString) => Promise<
|
|
1831
|
+
getVanityUrl: (guildId: BigString) => Promise<CamelizedDiscordVanityUrl>;
|
|
1832
1832
|
/**
|
|
1833
1833
|
* Gets the list of voice regions for a guild.
|
|
1834
1834
|
*
|
|
@@ -1837,19 +1837,19 @@ export interface RestManager {
|
|
|
1837
1837
|
*
|
|
1838
1838
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-voice-regions}
|
|
1839
1839
|
*/
|
|
1840
|
-
getVoiceRegions: (guildId: BigString) => Promise<
|
|
1840
|
+
getVoiceRegions: (guildId: BigString) => Promise<CamelizedDiscordVoiceRegion[]>;
|
|
1841
1841
|
/**
|
|
1842
1842
|
* Gets a webhook by its ID.
|
|
1843
1843
|
*
|
|
1844
1844
|
* @param webhookId - The ID of the webhook to get.
|
|
1845
|
-
* @returns An instance of {@link
|
|
1845
|
+
* @returns An instance of {@link CamelizedDiscordWebhook}.
|
|
1846
1846
|
*
|
|
1847
1847
|
* @remarks
|
|
1848
1848
|
* Requires the `MANAGE_WEBHOOKS` permission.
|
|
1849
1849
|
*
|
|
1850
1850
|
* @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook}
|
|
1851
1851
|
*/
|
|
1852
|
-
getWebhook: (webhookId: BigString) => Promise<
|
|
1852
|
+
getWebhook: (webhookId: BigString) => Promise<CamelizedDiscordWebhook>;
|
|
1853
1853
|
/**
|
|
1854
1854
|
* Gets a webhook message by its ID.
|
|
1855
1855
|
*
|
|
@@ -1857,21 +1857,21 @@ export interface RestManager {
|
|
|
1857
1857
|
* @param token - The webhook token, used to get webhook messages.
|
|
1858
1858
|
* @param messageId - the ID of the webhook message to get.
|
|
1859
1859
|
* @param options - The parameters for the fetching of the message.
|
|
1860
|
-
* @returns An instance of {@link
|
|
1860
|
+
* @returns An instance of {@link CamelizedDiscordMessage}.
|
|
1861
1861
|
*
|
|
1862
1862
|
* @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-message}
|
|
1863
1863
|
*/
|
|
1864
|
-
getWebhookMessage: (webhookId: BigString, token: string, messageId: BigString, options?: GetWebhookMessageOptions) => Promise<
|
|
1864
|
+
getWebhookMessage: (webhookId: BigString, token: string, messageId: BigString, options?: GetWebhookMessageOptions) => Promise<CamelizedDiscordMessage>;
|
|
1865
1865
|
/**
|
|
1866
1866
|
* Gets a webhook using the webhook token, thereby bypassing the need for authentication + permissions.
|
|
1867
1867
|
*
|
|
1868
1868
|
* @param webhookId - The ID of the webhook to get.
|
|
1869
1869
|
* @param token - The webhook token, used to get the webhook.
|
|
1870
|
-
* @returns An instance of {@link
|
|
1870
|
+
* @returns An instance of {@link CamelizedDiscordWebhook}.
|
|
1871
1871
|
*
|
|
1872
1872
|
* @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-with-token}
|
|
1873
1873
|
*/
|
|
1874
|
-
getWebhookWithToken: (webhookId: BigString, token: string) => Promise<
|
|
1874
|
+
getWebhookWithToken: (webhookId: BigString, token: string) => Promise<CamelizedDiscordWebhook>;
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Gets the welcome screen for a guild.
|
|
1877
1877
|
*
|
|
@@ -1884,7 +1884,7 @@ export interface RestManager {
|
|
|
1884
1884
|
*
|
|
1885
1885
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen}
|
|
1886
1886
|
*/
|
|
1887
|
-
getWelcomeScreen: (guildId: BigString) => Promise<
|
|
1887
|
+
getWelcomeScreen: (guildId: BigString) => Promise<CamelizedDiscordWelcomeScreen>;
|
|
1888
1888
|
/**
|
|
1889
1889
|
* Gets the guild widget by guild ID.
|
|
1890
1890
|
*
|
|
@@ -1893,7 +1893,7 @@ export interface RestManager {
|
|
|
1893
1893
|
*
|
|
1894
1894
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-widget}
|
|
1895
1895
|
*/
|
|
1896
|
-
getWidget: (guildId: BigString) => Promise<
|
|
1896
|
+
getWidget: (guildId: BigString) => Promise<CamelizedDiscordGuildWidget>;
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Gets the settings of a guild's widget.
|
|
1899
1899
|
*
|
|
@@ -1905,7 +1905,7 @@ export interface RestManager {
|
|
|
1905
1905
|
*
|
|
1906
1906
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-widget-settings}
|
|
1907
1907
|
*/
|
|
1908
|
-
getWidgetSettings: (guildId: BigString) => Promise<
|
|
1908
|
+
getWidgetSettings: (guildId: BigString) => Promise<CamelizedDiscordGuildWidgetSettings>;
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Adds the bot user to a thread.
|
|
1911
1911
|
*
|
|
@@ -1960,7 +1960,7 @@ export interface RestManager {
|
|
|
1960
1960
|
*
|
|
1961
1961
|
* @see {@link https://discord.com/developers/docs/resources/channel#crosspost-message}
|
|
1962
1962
|
*/
|
|
1963
|
-
publishMessage: (channelId: BigString, messageId: BigString) => Promise<
|
|
1963
|
+
publishMessage: (channelId: BigString, messageId: BigString) => Promise<CamelizedDiscordMessage>;
|
|
1964
1964
|
/**
|
|
1965
1965
|
* Removes a role from a member.
|
|
1966
1966
|
*
|
|
@@ -1998,7 +1998,7 @@ export interface RestManager {
|
|
|
1998
1998
|
*
|
|
1999
1999
|
* @param channelId - The ID of the channel to send the message in.
|
|
2000
2000
|
* @param options - The parameters for the creation of the message.
|
|
2001
|
-
* @returns An instance of the created {@link
|
|
2001
|
+
* @returns An instance of the created {@link CamelizedDiscordMessage}.
|
|
2002
2002
|
*
|
|
2003
2003
|
* @remarks
|
|
2004
2004
|
* Requires that the bot user be able to see the contents of the channel the message is to be sent in.
|
|
@@ -2019,7 +2019,7 @@ export interface RestManager {
|
|
|
2019
2019
|
*
|
|
2020
2020
|
* @see {@link https://discord.com/developers/docs/resources/channel#create-message}
|
|
2021
2021
|
*/
|
|
2022
|
-
sendMessage: (channelId: BigString, options: CreateMessageOptions) => Promise<
|
|
2022
|
+
sendMessage: (channelId: BigString, options: CreateMessageOptions) => Promise<CamelizedDiscordMessage>;
|
|
2023
2023
|
/**
|
|
2024
2024
|
* Sends a follow-up message to an interaction.
|
|
2025
2025
|
*
|
|
@@ -2040,7 +2040,7 @@ export interface RestManager {
|
|
|
2040
2040
|
*
|
|
2041
2041
|
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message}
|
|
2042
2042
|
*/
|
|
2043
|
-
sendFollowupMessage: (token: string, options: InteractionCallbackData) => Promise<
|
|
2043
|
+
sendFollowupMessage: (token: string, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage>;
|
|
2044
2044
|
/**
|
|
2045
2045
|
* Sends a response to an interaction.
|
|
2046
2046
|
*
|
|
@@ -2082,13 +2082,13 @@ export interface RestManager {
|
|
|
2082
2082
|
*
|
|
2083
2083
|
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-from-message}
|
|
2084
2084
|
*/
|
|
2085
|
-
startThreadWithMessage: (channelId: BigString, messageId: BigString, options: StartThreadWithMessage) => Promise<
|
|
2085
|
+
startThreadWithMessage: (channelId: BigString, messageId: BigString, options: StartThreadWithMessage) => Promise<CamelizedDiscordChannel>;
|
|
2086
2086
|
/**
|
|
2087
2087
|
* Creates a thread without using a message as the thread's point of origin.
|
|
2088
2088
|
*
|
|
2089
2089
|
* @param channelId - The ID of the channel in which to create the thread.
|
|
2090
2090
|
* @param options - The parameters to use for the creation of the thread.
|
|
2091
|
-
* @returns An instance of the created {@link
|
|
2091
|
+
* @returns An instance of the created {@link CamelizedDiscordChannel | Thread}.
|
|
2092
2092
|
*
|
|
2093
2093
|
* @remarks
|
|
2094
2094
|
* Creating a private thread requires the server to be boosted.
|
|
@@ -2097,7 +2097,7 @@ export interface RestManager {
|
|
|
2097
2097
|
*
|
|
2098
2098
|
* @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message}
|
|
2099
2099
|
*/
|
|
2100
|
-
startThreadWithoutMessage: (channelId: BigString, options: StartThreadWithoutMessage) => Promise<
|
|
2100
|
+
startThreadWithoutMessage: (channelId: BigString, options: StartThreadWithoutMessage) => Promise<CamelizedDiscordChannel>;
|
|
2101
2101
|
/**
|
|
2102
2102
|
* Synchronises a template with the current state of a guild.
|
|
2103
2103
|
*
|
|
@@ -2111,7 +2111,7 @@ export interface RestManager {
|
|
|
2111
2111
|
*
|
|
2112
2112
|
* @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-templates}
|
|
2113
2113
|
*/
|
|
2114
|
-
syncGuildTemplate: (guildId: BigString) => Promise<
|
|
2114
|
+
syncGuildTemplate: (guildId: BigString) => Promise<CamelizedDiscordTemplate>;
|
|
2115
2115
|
/**
|
|
2116
2116
|
* Triggers a typing indicator for the bot user.
|
|
2117
2117
|
*
|
|
@@ -2138,7 +2138,7 @@ export interface RestManager {
|
|
|
2138
2138
|
*
|
|
2139
2139
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands}
|
|
2140
2140
|
*/
|
|
2141
|
-
upsertGlobalApplicationCommands: (commands: CreateApplicationCommand[]) => Promise<
|
|
2141
|
+
upsertGlobalApplicationCommands: (commands: CreateApplicationCommand[]) => Promise<CamelizedDiscordApplicationCommand[]>;
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Re-registers the list of application commands registered in a guild, overwriting the previous commands completely.
|
|
2144
2144
|
*
|
|
@@ -2153,7 +2153,7 @@ export interface RestManager {
|
|
|
2153
2153
|
*
|
|
2154
2154
|
* @see {@link https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands}
|
|
2155
2155
|
*/
|
|
2156
|
-
upsertGuildApplicationCommands: (guildId: BigString, commands: CreateApplicationCommand[]) => Promise<
|
|
2156
|
+
upsertGuildApplicationCommands: (guildId: BigString, commands: CreateApplicationCommand[]) => Promise<CamelizedDiscordApplicationCommand[]>;
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Bans a user from a guild.
|
|
2159
2159
|
*
|
|
@@ -2175,14 +2175,14 @@ export interface RestManager {
|
|
|
2175
2175
|
*
|
|
2176
2176
|
* @param guildId - The ID of the guild to edit the nickname of the bot user in.
|
|
2177
2177
|
* @param options - The parameters for the edit of the nickname.
|
|
2178
|
-
* @returns An instance of the edited {@link
|
|
2178
|
+
* @returns An instance of the edited {@link CamelizedDiscordMember}
|
|
2179
2179
|
*
|
|
2180
2180
|
* @remarks
|
|
2181
2181
|
* Fires a _Guild Member Update_ gateway event.
|
|
2182
2182
|
*
|
|
2183
2183
|
* @see {@link https://discord.com/developers/docs/resources/guild#modify-current-member}
|
|
2184
2184
|
*/
|
|
2185
|
-
editBotMember: (guildId: BigString, options: EditBotMemberOptions) => Promise<
|
|
2185
|
+
editBotMember: (guildId: BigString, options: EditBotMemberOptions) => Promise<CamelizedDiscordMember>;
|
|
2186
2186
|
/**
|
|
2187
2187
|
* Edits a member's properties.
|
|
2188
2188
|
*
|
|
@@ -2198,24 +2198,24 @@ export interface RestManager {
|
|
|
2198
2198
|
*
|
|
2199
2199
|
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-member}
|
|
2200
2200
|
*/
|
|
2201
|
-
editMember: (guildId: BigString, userId: BigString, options: ModifyGuildMember) => Promise<
|
|
2201
|
+
editMember: (guildId: BigString, userId: BigString, options: ModifyGuildMember) => Promise<CamelizedDiscordMember>;
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Gets the member object by user ID.
|
|
2204
2204
|
*
|
|
2205
2205
|
|
|
2206
2206
|
* @param guildId - The ID of the guild to get the member object for.
|
|
2207
2207
|
* @param userId - The ID of the user to get the member object for.
|
|
2208
|
-
* @returns An instance of {@link
|
|
2208
|
+
* @returns An instance of {@link CamelizedDiscordMemberWithUser}.
|
|
2209
2209
|
*
|
|
2210
2210
|
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-member}
|
|
2211
2211
|
*/
|
|
2212
|
-
getMember: (guildId: BigString, userId: BigString) => Promise<
|
|
2212
|
+
getMember: (guildId: BigString, userId: BigString) => Promise<CamelizedDiscordMemberWithUser>;
|
|
2213
2213
|
/**
|
|
2214
2214
|
* Gets the list of members for a guild.
|
|
2215
2215
|
*
|
|
2216
2216
|
* @param guildId - The ID of the guild to get the list of members for.
|
|
2217
2217
|
* @param options - The parameters for the fetching of the members.
|
|
2218
|
-
* @returns A collection of {@link
|
|
2218
|
+
* @returns A collection of {@link CamelizedDiscordMemberWithUser} objects assorted by user ID.
|
|
2219
2219
|
*
|
|
2220
2220
|
* @remarks
|
|
2221
2221
|
* Requires the `GUILD_MEMBERS` intent.
|
|
@@ -2228,7 +2228,7 @@ export interface RestManager {
|
|
|
2228
2228
|
* @see {@link https://discord.com/developers/docs/topics/gateway#request-guild-members}
|
|
2229
2229
|
* @see {@link https://discord.com/developers/docs/topics/rate-limits#rate-limits}
|
|
2230
2230
|
*/
|
|
2231
|
-
getMembers: (guildId: BigString, options: ListGuildMembers) => Promise<
|
|
2231
|
+
getMembers: (guildId: BigString, options: ListGuildMembers) => Promise<CamelizedDiscordMemberWithUser[]>;
|
|
2232
2232
|
/**
|
|
2233
2233
|
* Kicks a member from a guild.
|
|
2234
2234
|
*
|
|
@@ -2291,11 +2291,11 @@ export interface RestManager {
|
|
|
2291
2291
|
* @param guildId - The ID of the guild to search in.
|
|
2292
2292
|
* @param query - The string to match usernames or nicknames against.
|
|
2293
2293
|
* @param options - The parameters for searching through the members.
|
|
2294
|
-
* @returns A collection of {@link
|
|
2294
|
+
* @returns A collection of {@link CamelizedDiscordMember} objects assorted by user ID.
|
|
2295
2295
|
*
|
|
2296
2296
|
* @see {@link https://discord.com/developers/docs/resources/guild#search-guild-members}
|
|
2297
2297
|
*/
|
|
2298
|
-
searchMembers: (guildId: BigString, query: string, options?: Omit<SearchMembers, 'query'>) => Promise<
|
|
2298
|
+
searchMembers: (guildId: BigString, query: string, options?: Omit<SearchMembers, 'query'>) => Promise<CamelizedDiscordMemberWithUser[]>;
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Unbans a user from a guild.
|
|
2301
2301
|
*
|
|
@@ -2381,7 +2381,7 @@ export interface WebhookMessageEditor {
|
|
|
2381
2381
|
* @param token - The webhook token, used to edit the message.
|
|
2382
2382
|
* @param messageId - The ID of the message to edit.
|
|
2383
2383
|
* @param options - The parameters for the edit of the message.
|
|
2384
|
-
* @returns An instance of the edited {@link
|
|
2384
|
+
* @returns An instance of the edited {@link CamelizedDiscordMessage}.
|
|
2385
2385
|
*
|
|
2386
2386
|
* @remarks
|
|
2387
2387
|
* Fires a _Message Update_ gateway event.
|
|
@@ -2390,14 +2390,14 @@ export interface WebhookMessageEditor {
|
|
|
2390
2390
|
*/
|
|
2391
2391
|
(webhookId: BigString, token: string, messageId: BigString, options: InteractionCallbackData & {
|
|
2392
2392
|
threadId?: BigString;
|
|
2393
|
-
}): Promise<
|
|
2393
|
+
}): Promise<CamelizedDiscordMessage>;
|
|
2394
2394
|
/**
|
|
2395
2395
|
* Edits the original webhook message.
|
|
2396
2396
|
*
|
|
2397
2397
|
* @param webhookId - The ID of the webhook to edit the original message of.
|
|
2398
2398
|
* @param token - The webhook token, used to edit the message.
|
|
2399
2399
|
* @param options - The parameters for the edit of the message.
|
|
2400
|
-
* @returns An instance of the edited {@link
|
|
2400
|
+
* @returns An instance of the edited {@link CamelizedDiscordMessage}.
|
|
2401
2401
|
*
|
|
2402
2402
|
* @remarks
|
|
2403
2403
|
* Fires a _Message Update_ gateway event.
|
|
@@ -2406,7 +2406,7 @@ export interface WebhookMessageEditor {
|
|
|
2406
2406
|
*/
|
|
2407
2407
|
original: (webhookId: BigString, token: string, options: InteractionCallbackData & {
|
|
2408
2408
|
threadId?: BigString;
|
|
2409
|
-
}) => Promise<
|
|
2409
|
+
}) => Promise<CamelizedDiscordMessage>;
|
|
2410
2410
|
}
|
|
2411
2411
|
export interface RestRequestResponse {
|
|
2412
2412
|
ok: boolean;
|