@discordeno/rest 19.0.0-next.fc13bdf → 19.0.0-next.fdf0d53

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 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, DiscordActiveThreads, DiscordApplication, DiscordApplicationCommand, DiscordApplicationCommandPermissions, DiscordArchivedThreads, DiscordAuditLog, DiscordAutoModerationRule, DiscordBan, DiscordChannel, DiscordEmoji, DiscordFollowedChannel, DiscordGetGatewayBot, DiscordGuild, DiscordGuildPreview, DiscordGuildWidget, DiscordGuildWidgetSettings, DiscordIntegration, DiscordInvite, DiscordInviteMetadata, DiscordMember, DiscordMemberWithUser, DiscordMessage, DiscordModifyGuildWelcomeScreen, DiscordPrunedCount, DiscordRole, DiscordScheduledEvent, DiscordStageInstance, DiscordSticker, DiscordStickerPack, DiscordTemplate, DiscordThreadMember, DiscordUser, DiscordVanityUrl, DiscordVoiceRegion, DiscordWebhook, DiscordWelcomeScreen, 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';
1
+ import type { ApplicationCommandPermissions, AtLeastOne, BeginGuildPrune, BigString, Camelize, 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, CreateApplicationCommand, CreateAutoModerationRuleOptions, CreateChannelInvite, CreateForumPostWithMessage, CreateGuild, CreateGuildBan, CreateGuildChannel, CreateGuildEmoji, CreateGuildFromTemplate, CreateGuildRole, CreateGuildStickerOptions, CreateMessageOptions, CreateScheduledEvent, CreateStageInstance, CreateTemplate, DeleteWebhookMessageOptions, EditAutoModerationRuleOptions, EditBotMemberOptions, EditChannelPermissionOverridesOptions, EditGuildRole, EditGuildStickerOptions, EditMessage, EditOwnVoiceState, EditScheduledEvent, EditUserVoiceState, ExecuteWebhook, FileContent, 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 } 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';
@@ -10,12 +10,17 @@ export interface CreateRestManagerOptions {
10
10
  * @default bot id from token
11
11
  */
12
12
  applicationId?: BigString;
13
- /**
14
- * The base url to connect to. If you create a proxy rest, that url would go here.
15
- * IT SHOULD NOT END WITH A /
16
- * @default https://discord.com/api
17
- */
18
- baseUrl?: string;
13
+ /** Configuration when using a proxy. */
14
+ proxy?: {
15
+ /**
16
+ * The base url to connect to. If you create a proxy rest, that url would go here.
17
+ * IT SHOULD NOT END WITH A /
18
+ * @default https://discord.com/api
19
+ */
20
+ baseUrl: string;
21
+ /** The authorization header to attach when sending requests to the proxy. */
22
+ authorization: string;
23
+ };
19
24
  /**
20
25
  * The api versions which can be used to make requests.
21
26
  * @default 10
@@ -35,6 +40,8 @@ export interface RestManager {
35
40
  * @default https://discord.com/api
36
41
  */
37
42
  baseUrl: string;
43
+ /** The authorization header to attach when sending requests to the proxy. */
44
+ authorization?: string;
38
45
  /** The maximum amount of times a request should be retried. Defaults to Infinity */
39
46
  maxRetryCount: number;
40
47
  /** Whether or not the manager is rate limited globally across all requests. Defaults to false. */
@@ -66,19 +73,19 @@ export interface RestManager {
66
73
  /** Split a url to separate rate limit buckets based on major/minor parameters. */
67
74
  simplifyUrl: (url: string, method: RequestMethods) => string;
68
75
  /** Make a request to be sent to the api. */
69
- makeRequest: <T = unknown>(method: RequestMethods, url: string, body?: Record<string, any>, options?: Record<string, any>) => Promise<T>;
76
+ makeRequest: <T = unknown>(method: RequestMethods, url: string, options?: Omit<CreateRequestBodyOptions, 'method'>) => Promise<T>;
70
77
  /** Takes a request and processes it into a queue. */
71
78
  processRequest: (request: SendRequestOptions) => void;
72
79
  /** Make a get request to the api */
73
- get: <T = void>(url: string) => Promise<Camelize<T>>;
80
+ get: <T = void>(url: string, options?: Omit<CreateRequestBodyOptions, 'body' | 'method'>) => Promise<Camelize<T>>;
74
81
  /** Make a post request to the api. */
75
- post: <T = void>(url: string, body?: Record<string, any>) => Promise<Camelize<T>>;
82
+ post: <T = void>(url: string, options?: Omit<CreateRequestBodyOptions, 'method'>) => Promise<Camelize<T>>;
76
83
  /** Make a put request to the api. */
77
- put: <T = void>(url: string, body?: Record<string, any>, options?: Record<string, any>) => Promise<Camelize<T>>;
84
+ put: <T = void>(url: string, options?: Omit<CreateRequestBodyOptions, 'method'>) => Promise<Camelize<T>>;
78
85
  /** Make a delete request to the api. */
79
- delete: (url: string, body?: Record<string, any>) => Promise<void>;
86
+ delete: (url: string, options?: Omit<CreateRequestBodyOptions, 'body' | 'method'>) => Promise<void>;
80
87
  /** Make a patch request to the api. */
81
- patch: <T = void>(url: string, body?: Record<string, any>) => Promise<Camelize<T>>;
88
+ patch: <T = void>(url: string, options?: Omit<CreateRequestBodyOptions, 'method'>) => Promise<Camelize<T>>;
82
89
  /**
83
90
  * Adds a reaction to a message.
84
91
  *
@@ -152,7 +159,7 @@ export interface RestManager {
152
159
  *
153
160
  * @param guildId - The ID of the guild to create the rule in.
154
161
  * @param options - The parameters for the creation of the rule.
155
- * @returns An instance of the created {@link DiscordAutoModerationRule}.
162
+ * @returns An instance of the created {@link CamelizedDiscordAutoModerationRule}.
156
163
  *
157
164
  * @remarks
158
165
  * Requires the `MANAGE_GUILD` permission.
@@ -161,13 +168,13 @@ export interface RestManager {
161
168
  *
162
169
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule}
163
170
  */
164
- createAutomodRule: (guildId: BigString, options: CreateAutoModerationRuleOptions) => Promise<Camelize<DiscordAutoModerationRule>>;
171
+ createAutomodRule: (guildId: BigString, options: CreateAutoModerationRuleOptions) => Promise<CamelizedDiscordAutoModerationRule>;
165
172
  /**
166
173
  * Creates a channel within a guild.
167
174
  *
168
175
  * @param guildId - The ID of the guild to create the channel within.
169
176
  * @param options - The parameters for the creation of the channel.
170
- * @returns An instance of the created {@link DiscordChannel}.
177
+ * @returns An instance of the created {@link CamelizedDiscordChannel}.
171
178
  *
172
179
  * @remarks
173
180
  * Requires the `MANAGE_CHANNELS` permission.
@@ -180,13 +187,13 @@ export interface RestManager {
180
187
  *
181
188
  * @see {@link https://discord.com/developers/docs/resources/guild#create-guild-channel}
182
189
  */
183
- createChannel: (guildId: BigString, options: CreateGuildChannel) => Promise<Camelize<DiscordChannel>>;
190
+ createChannel: (guildId: BigString, options: CreateGuildChannel) => Promise<CamelizedDiscordChannel>;
184
191
  /**
185
192
  * Creates an emoji in a guild.
186
193
  *
187
194
  * @param guildId - The ID of the guild in which to create the emoji.
188
195
  * @param options - The parameters for the creation of the emoji.
189
- * @returns An instance of the created {@link DiscordEmoji}.
196
+ * @returns An instance of the created {@link CamelizedDiscordEmoji}.
190
197
  *
191
198
  * @remarks
192
199
  * Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
@@ -197,13 +204,13 @@ export interface RestManager {
197
204
  *
198
205
  * @see {@link https://discord.com/developers/docs/resources/emoji#create-guild-emoji}
199
206
  */
200
- createEmoji: (guildId: BigString, options: CreateGuildEmoji) => Promise<Camelize<DiscordEmoji>>;
207
+ createEmoji: (guildId: BigString, options: CreateGuildEmoji) => Promise<CamelizedDiscordEmoji>;
201
208
  /**
202
209
  * Creates a new thread in a forum channel, and sends a message within the created thread.
203
210
  *
204
211
  * @param channelId - The ID of the forum channel to create the thread within.
205
212
  * @param options - The parameters for the creation of the thread.
206
- * @returns An instance of {@link DiscordChannel} with a nested {@link Message} object.
213
+ * @returns An instance of {@link CamelizedDiscordChannel} with a nested {@link Message} object.
207
214
  *
208
215
  * @remarks
209
216
  * Requires the `CREATE_MESSAGES` permission.
@@ -215,7 +222,7 @@ export interface RestManager {
215
222
  *
216
223
  * @experimental
217
224
  */
218
- createForumThread: (channelId: BigString, options: CreateForumPostWithMessage) => Promise<Camelize<DiscordChannel>>;
225
+ createForumThread: (channelId: BigString, options: CreateForumPostWithMessage) => Promise<CamelizedDiscordChannel>;
219
226
  /**
220
227
  * Creates an application command accessible globally; across different guilds and channels.
221
228
  *
@@ -229,12 +236,12 @@ export interface RestManager {
229
236
  *
230
237
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#create-global-application-command}
231
238
  */
232
- createGlobalApplicationCommand: (command: CreateApplicationCommand) => Promise<Camelize<DiscordApplicationCommand>>;
239
+ createGlobalApplicationCommand: (command: CreateApplicationCommand) => Promise<CamelizedDiscordApplicationCommand>;
233
240
  /**
234
241
  * Creates a guild.
235
242
  *
236
243
  * @param options - The parameters for the creation of the guild.
237
- * @returns An instance of the created {@link DiscordGuild}.
244
+ * @returns An instance of the created {@link CamelizedDiscordGuild}.
238
245
  *
239
246
  * @remarks
240
247
  * ⚠️ This route can only be used by bots in __fewer than 10 guilds__.
@@ -243,7 +250,7 @@ export interface RestManager {
243
250
  *
244
251
  * @see {@link https://discord.com/developers/docs/resources/guild#create-guild}
245
252
  */
246
- createGuild: (options: CreateGuild) => Promise<Camelize<DiscordGuild>>;
253
+ createGuild: (options: CreateGuild) => Promise<CamelizedDiscordGuild>;
247
254
  /**
248
255
  * Creates an application command only accessible in a specific guild.
249
256
  *
@@ -257,7 +264,7 @@ export interface RestManager {
257
264
  *
258
265
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command}
259
266
  */
260
- createGuildApplicationCommand: (command: CreateApplicationCommand, guildId: BigString) => Promise<Camelize<DiscordApplicationCommand>>;
267
+ createGuildApplicationCommand: (command: CreateApplicationCommand, guildId: BigString) => Promise<CamelizedDiscordApplicationCommand>;
261
268
  /**
262
269
  * Creates a guild from a template.
263
270
  *
@@ -272,12 +279,12 @@ export interface RestManager {
272
279
  *
273
280
  * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template}
274
281
  */
275
- createGuildFromTemplate: (templateCode: string, options: CreateGuildFromTemplate) => Promise<Camelize<DiscordGuild>>;
282
+ createGuildFromTemplate: (templateCode: string, options: CreateGuildFromTemplate) => Promise<CamelizedDiscordGuild>;
276
283
  /**
277
284
  * Create a new sticker for the guild.
278
285
  *
279
286
  * @param guildId The ID of the guild to get
280
- * @return A {@link DiscordSticker}
287
+ * @return A {@link CamelizedDiscordSticker}
281
288
  *
282
289
  * @remarks
283
290
  * Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
@@ -287,7 +294,7 @@ export interface RestManager {
287
294
  *
288
295
  * @see {@link https://discord.com/developers/docs/resources/sticker#create-guild-sticker}
289
296
  */
290
- createGuildSticker: (guildId: BigString, options: CreateGuildStickerOptions) => Promise<Camelize<DiscordSticker>>;
297
+ createGuildSticker: (guildId: BigString, options: CreateGuildStickerOptions) => Promise<CamelizedDiscordSticker>;
291
298
  /**
292
299
  * Creates a template from a guild.
293
300
  *
@@ -302,13 +309,13 @@ export interface RestManager {
302
309
  *
303
310
  * @see {@link https://discord.com/developers/docs/resources/guild-template#create-guild-template}
304
311
  */
305
- createGuildTemplate: (guildId: BigString, options: CreateTemplate) => Promise<Camelize<DiscordTemplate>>;
312
+ createGuildTemplate: (guildId: BigString, options: CreateTemplate) => Promise<CamelizedDiscordTemplate>;
306
313
  /**
307
314
  * Creates an invite to a channel in a guild.
308
315
  *
309
316
  * @param channelId - The ID of the channel to create the invite to.
310
317
  * @param options - The parameters for the creation of the invite.
311
- * @returns An instance of the created {@link DiscordInvite}.
318
+ * @returns An instance of the created {@link CamelizedDiscordInvite}.
312
319
  *
313
320
  * @remarks
314
321
  * Requires the `CREATE_INSTANT_INVITE` permission.
@@ -320,13 +327,13 @@ export interface RestManager {
320
327
  *
321
328
  * @see {@link https://discord.com/developers/docs/resources/channel#create-channel-invite}
322
329
  */
323
- createInvite: (channelId: BigString, options?: CreateChannelInvite) => Promise<Camelize<DiscordInvite>>;
330
+ createInvite: (channelId: BigString, options?: CreateChannelInvite) => Promise<CamelizedDiscordInvite>;
324
331
  /**
325
332
  * Creates a role in a guild.
326
333
  *
327
334
  * @param guildId - The ID of the guild to create the role in.
328
335
  * @param options - The parameters for the creation of the role.
329
- * @returns An instance of the created {@link DiscordRole}.
336
+ * @returns An instance of the created {@link CamelizedDiscordRole}.
330
337
  *
331
338
  * @remarks
332
339
  * Requires the `MANAGE_ROLES` permission.
@@ -335,7 +342,7 @@ export interface RestManager {
335
342
  *
336
343
  * @see {@link https://discord.com/developers/docs/resources/guild#create-guild-role}
337
344
  */
338
- createRole: (guildId: BigString, options: CreateGuildRole, reason?: string) => Promise<Camelize<DiscordRole>>;
345
+ createRole: (guildId: BigString, options: CreateGuildRole, reason?: string) => Promise<CamelizedDiscordRole>;
339
346
  /**
340
347
  * Creates a scheduled event in a guild.
341
348
  *
@@ -352,12 +359,12 @@ export interface RestManager {
352
359
  *
353
360
  * @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event}
354
361
  */
355
- createScheduledEvent: (guildId: BigString, options: CreateScheduledEvent) => Promise<Camelize<DiscordScheduledEvent>>;
362
+ createScheduledEvent: (guildId: BigString, options: CreateScheduledEvent) => Promise<CamelizedDiscordScheduledEvent>;
356
363
  /**
357
364
  * Creates a stage instance associated with a stage channel.
358
365
  *
359
366
  * @param options - The parameters for the creation of the stage instance.
360
- * @returns An instance of the created {@link DiscordStageInstance}.
367
+ * @returns An instance of the created {@link CamelizedDiscordStageInstance}.
361
368
  *
362
369
  * @remarks
363
370
  * Requires the user to be a moderator of the stage channel.
@@ -366,13 +373,13 @@ export interface RestManager {
366
373
  *
367
374
  * @see {@link https://discord.com/developers/docs/resources/stage-instance#create-stage-instance}
368
375
  */
369
- createStageInstance: (options: CreateStageInstance) => Promise<Camelize<DiscordStageInstance>>;
376
+ createStageInstance: (options: CreateStageInstance) => Promise<CamelizedDiscordStageInstance>;
370
377
  /**
371
378
  * Creates a webhook.
372
379
  *
373
380
  * @param channelId - The ID of the channel to create the webhook in.
374
381
  * @param options - The parameters for the creation of the webhook.
375
- * @returns An instance of the created {@link DiscordWebhook}.
382
+ * @returns An instance of the created {@link CamelizedDiscordWebhook}.
376
383
  *
377
384
  * @remarks
378
385
  * Requires the `MANAGE_WEBHOOKS` permission.
@@ -383,7 +390,7 @@ export interface RestManager {
383
390
  *
384
391
  * @see {@link https://discord.com/developers/docs/resources/webhook#create-webhook}
385
392
  */
386
- createWebhook: (channelId: BigString, options: CreateWebhook) => Promise<Camelize<DiscordWebhook>>;
393
+ createWebhook: (channelId: BigString, options: CreateWebhook, reason?: string) => Promise<CamelizedDiscordWebhook>;
387
394
  /**
388
395
  * Deletes an automod rule.
389
396
  *
@@ -499,7 +506,7 @@ export interface RestManager {
499
506
  * Delete a new sticker for the guild.
500
507
  *
501
508
  * @param guildId The ID of the guild to get
502
- * @return A {@link DiscordSticker}
509
+ * @return A {@link CamelizedDiscordSticker}
503
510
  *
504
511
  * @remarks
505
512
  * Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
@@ -758,14 +765,14 @@ export interface RestManager {
758
765
  *
759
766
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions}
760
767
  */
761
- editApplicationCommandPermissions: (guildId: BigString, commandId: BigString, bearerToken: string, options: ApplicationCommandPermissions[]) => Promise<Camelize<DiscordApplicationCommandPermissions>>;
768
+ editApplicationCommandPermissions: (guildId: BigString, commandId: BigString, bearerToken: string, options: ApplicationCommandPermissions[]) => Promise<CamelizedDiscordApplicationCommandPermissions>;
762
769
  /**
763
770
  * Edits an automod rule.
764
771
  *
765
772
  * @param guildId - The ID of the guild to edit the rule in.
766
773
  * @param ruleId - The ID of the rule to edit.
767
774
  * @param options - The parameters for the edit of the rule.
768
- * @returns An instance of the edited {@link DiscordAutoModerationRule}.
775
+ * @returns An instance of the edited {@link CamelizedDiscordAutoModerationRule}.
769
776
  *
770
777
  * @remarks
771
778
  * Requires the `MANAGE_GUILD` permission.
@@ -774,7 +781,7 @@ export interface RestManager {
774
781
  *
775
782
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#modify-auto-moderation-rule}
776
783
  */
777
- editAutomodRule: (guildId: BigString, ruleId: BigString, options: Partial<EditAutoModerationRuleOptions>) => Promise<Camelize<DiscordAutoModerationRule>>;
784
+ editAutomodRule: (guildId: BigString, ruleId: BigString, options: Partial<EditAutoModerationRuleOptions>) => Promise<CamelizedDiscordAutoModerationRule>;
778
785
  /**
779
786
  * Modifies the bot's username or avatar.
780
787
  * NOTE: username: if changed may cause the bot's discriminator to be randomized.
@@ -782,13 +789,13 @@ export interface RestManager {
782
789
  editBotProfile: (options: {
783
790
  username?: string;
784
791
  botAvatarURL?: string | null;
785
- }) => Promise<Camelize<DiscordUser>>;
792
+ }) => Promise<CamelizedDiscordUser>;
786
793
  /**
787
794
  * Edits a channel's settings.
788
795
  *
789
796
  * @param channelId - The ID of the channel to edit.
790
797
  * @param options - The parameters for the edit of the channel.
791
- * @returns An instance of the edited {@link DiscordChannel}.
798
+ * @returns An instance of the edited {@link CamelizedDiscordChannel}.
792
799
  *
793
800
  * @remarks
794
801
  * If editing a channel of type {@link ChannelTypes.GroupDm}:
@@ -812,7 +819,7 @@ export interface RestManager {
812
819
  * - Otherwise:
813
820
  * - Fires a _Channel Update_ gateway event.
814
821
  */
815
- editChannel: (channelId: BigString, options: ModifyChannel) => Promise<Camelize<DiscordChannel>>;
822
+ editChannel: (channelId: BigString, options: ModifyChannel) => Promise<CamelizedDiscordChannel>;
816
823
  /**
817
824
  * Edits the permission overrides for a user or role in a channel.
818
825
  *
@@ -849,7 +856,7 @@ export interface RestManager {
849
856
  * @param guildId - The ID of the guild in which to edit the emoji.
850
857
  * @param id - The ID of the emoji to edit.
851
858
  * @param options - The parameters for the edit of the emoji.
852
- * @returns An instance of the updated {@link DiscordEmoji}.
859
+ * @returns An instance of the updated {@link CamelizedDiscordEmoji}.
853
860
  *
854
861
  * @remarks
855
862
  * Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
@@ -858,7 +865,7 @@ export interface RestManager {
858
865
  *
859
866
  * @see {@link https://discord.com/developers/docs/resources/emoji#modify-guild-emoji}
860
867
  */
861
- editEmoji: (guildId: BigString, id: BigString, options: ModifyGuildEmoji) => Promise<Camelize<DiscordEmoji>>;
868
+ editEmoji: (guildId: BigString, id: BigString, options: ModifyGuildEmoji) => Promise<CamelizedDiscordEmoji>;
862
869
  /**
863
870
  * Edits a follow-up message to an interaction.
864
871
  *
@@ -876,7 +883,7 @@ export interface RestManager {
876
883
  *
877
884
  * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#edit-followup-message}
878
885
  */
879
- editFollowupMessage: (token: string, messageId: BigString, options: InteractionCallbackData) => Promise<Camelize<DiscordMessage>>;
886
+ editFollowupMessage: (token: string, messageId: BigString, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage>;
880
887
  /**
881
888
  * Edits a global application command.
882
889
  *
@@ -886,7 +893,7 @@ export interface RestManager {
886
893
  *
887
894
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command}
888
895
  */
889
- editGlobalApplicationCommand: (commandId: BigString, options: CreateApplicationCommand) => Promise<Camelize<DiscordApplicationCommand>>;
896
+ editGlobalApplicationCommand: (commandId: BigString, options: CreateApplicationCommand) => Promise<CamelizedDiscordApplicationCommand>;
890
897
  /**
891
898
  * Edits a guild's settings.
892
899
  *
@@ -905,7 +912,7 @@ export interface RestManager {
905
912
  *
906
913
  * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild}
907
914
  */
908
- editGuild: (guildId: BigString, options: ModifyGuild) => Promise<Camelize<DiscordGuild>>;
915
+ editGuild: (guildId: BigString, options: ModifyGuild) => Promise<CamelizedDiscordGuild>;
909
916
  /**
910
917
  * Edits an application command registered in a guild.
911
918
  *
@@ -916,14 +923,14 @@ export interface RestManager {
916
923
  *
917
924
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command}
918
925
  */
919
- editGuildApplicationCommand: (commandId: BigString, guildId: BigString, options: CreateApplicationCommand) => Promise<Camelize<DiscordApplicationCommand>>;
926
+ editGuildApplicationCommand: (commandId: BigString, guildId: BigString, options: CreateApplicationCommand) => Promise<CamelizedDiscordApplicationCommand>;
920
927
  /** Modify a guild's MFA level. Requires guild ownership. */
921
928
  editGuildMfaLevel: (guildId: BigString, mfaLevel: MfaLevels, reason?: string) => Promise<void>;
922
929
  /**
923
930
  * Edit the given sticker.
924
931
  *
925
932
  * @param guildId The ID of the guild to get
926
- * @return A {@link DiscordSticker}
933
+ * @return A {@link CamelizedDiscordSticker}
927
934
  *
928
935
  * @remarks
929
936
  * Requires the `MANAGE_EMOJIS_AND_STICKERS` permission.
@@ -931,7 +938,7 @@ export interface RestManager {
931
938
  *
932
939
  * @see {@link https://discord.com/developers/docs/resources/sticker#modify-guild-sticker}
933
940
  */
934
- editGuildSticker: (guildId: BigString, stickerId: BigString, options: AtLeastOne<EditGuildStickerOptions>) => Promise<Camelize<DiscordSticker>>;
941
+ editGuildSticker: (guildId: BigString, stickerId: BigString, options: AtLeastOne<EditGuildStickerOptions>) => Promise<CamelizedDiscordSticker>;
935
942
  /**
936
943
  * Edits a template's settings.
937
944
  *
@@ -947,7 +954,7 @@ export interface RestManager {
947
954
  *
948
955
  * @see {@link https://discord.com/developers/docs/resources/guild-template#modify-guild-template}
949
956
  */
950
- editGuildTemplate: (guildId: BigString, templateCode: string, options: ModifyGuildTemplate) => Promise<Camelize<DiscordTemplate>>;
957
+ editGuildTemplate: (guildId: BigString, templateCode: string, options: ModifyGuildTemplate) => Promise<CamelizedDiscordTemplate>;
951
958
  /**
952
959
  * Edits a message.
953
960
  *
@@ -965,7 +972,7 @@ export interface RestManager {
965
972
  *
966
973
  * @see {@link https://discord.com/developers/docs/resources/channel#edit-message}
967
974
  */
968
- editMessage: (channelId: BigString, messageId: BigString, options: EditMessage) => Promise<Camelize<DiscordMessage>>;
975
+ editMessage: (channelId: BigString, messageId: BigString, options: EditMessage) => Promise<CamelizedDiscordMessage>;
969
976
  /**
970
977
  * Edits the initial message response to an interaction.
971
978
  *
@@ -982,14 +989,14 @@ export interface RestManager {
982
989
  *
983
990
  * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#edit-original-interaction-response}
984
991
  */
985
- editOriginalInteractionResponse: (token: string, options: InteractionCallbackData) => Promise<Camelize<DiscordMessage> | undefined>;
992
+ editOriginalInteractionResponse: (token: string, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage | undefined>;
986
993
  /**
987
994
  * Edits the original webhook message.
988
995
  *
989
996
  * @param webhookId - The ID of the webhook to edit the original message of.
990
997
  * @param token - The webhook token, used to edit the message.
991
998
  * @param options - The parameters for the edit of the message.
992
- * @returns An instance of the edited {@link DiscordMessage}.
999
+ * @returns An instance of the edited {@link CamelizedDiscordMessage}.
993
1000
  *
994
1001
  * @remarks
995
1002
  * Fires a _Message Update_ gateway event.
@@ -998,7 +1005,7 @@ export interface RestManager {
998
1005
  */
999
1006
  editOriginalWebhookMessage: (webhookId: BigString, token: string, options: InteractionCallbackData & {
1000
1007
  threadId?: BigString;
1001
- }) => Promise<Camelize<DiscordMessage>>;
1008
+ }) => Promise<CamelizedDiscordMessage>;
1002
1009
  /**
1003
1010
  * Edits the voice state of the bot user.
1004
1011
  *
@@ -1023,7 +1030,7 @@ export interface RestManager {
1023
1030
  * @param guildId - The ID of the guild to edit the role in.
1024
1031
  * @param roleId - The ID of the role to edit.
1025
1032
  * @param options - The parameters for the edit of the role.
1026
- * @returns An instance of the edited {@link DiscordRole}.
1033
+ * @returns An instance of the edited {@link CamelizedDiscordRole}.
1027
1034
  *
1028
1035
  * @remarks
1029
1036
  * Requires the `MANAGE_ROLES` permission.
@@ -1032,13 +1039,13 @@ export interface RestManager {
1032
1039
  *
1033
1040
  * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-role}
1034
1041
  */
1035
- editRole: (guildId: BigString, roleId: BigString, options: EditGuildRole) => Promise<Camelize<DiscordRole>>;
1042
+ editRole: (guildId: BigString, roleId: BigString, options: EditGuildRole) => Promise<CamelizedDiscordRole>;
1036
1043
  /**
1037
1044
  * Edits the positions of a set of roles.
1038
1045
  *
1039
1046
  * @param guildId - The ID of the guild to edit the role positions in.
1040
1047
  * @param options - The parameters for the edit of the role positions.
1041
- * @returns A collection of {@link DiscordRole} objects assorted by role ID.
1048
+ * @returns A collection of {@link CamelizedDiscordRole} objects assorted by role ID.
1042
1049
  *
1043
1050
  * @remarks
1044
1051
  * Requires the `MANAGE_ROLES` permission.
@@ -1047,7 +1054,7 @@ export interface RestManager {
1047
1054
  *
1048
1055
  * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-role-positions}
1049
1056
  */
1050
- editRolePositions: (guildId: BigString, options: ModifyRolePositions[]) => Promise<Camelize<DiscordRole[]>>;
1057
+ editRolePositions: (guildId: BigString, options: ModifyRolePositions[]) => Promise<CamelizedDiscordRole[]>;
1051
1058
  /**
1052
1059
  * Edits a scheduled event.
1053
1060
  *
@@ -1066,12 +1073,13 @@ export interface RestManager {
1066
1073
  *
1067
1074
  * @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event}
1068
1075
  */
1069
- editScheduledEvent: (guildId: BigString, eventId: BigString, options: Partial<EditScheduledEvent>) => Promise<Camelize<DiscordScheduledEvent>>;
1076
+ editScheduledEvent: (guildId: BigString, eventId: BigString, options: Partial<EditScheduledEvent>) => Promise<CamelizedDiscordScheduledEvent>;
1070
1077
  /**
1071
1078
  * Edits a stage instance.
1072
1079
  *
1073
1080
  * @param channelId - The ID of the stage channel the stage instance is associated with.
1074
- * @returns An instance of the updated {@link DiscordStageInstance}.
1081
+ * @param topic - Topic of the Stage instance (1-120 characters).
1082
+ * @returns An instance of the updated {@link CamelizedDiscordStageInstance}.
1075
1083
  *
1076
1084
  * @remarks
1077
1085
  * Requires the user to be a moderator of the stage channel.
@@ -1080,7 +1088,7 @@ export interface RestManager {
1080
1088
  *
1081
1089
  * @see {@link https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance}
1082
1090
  */
1083
- editStageInstance: (channelId: BigString, data: EditStageInstanceOptions) => Promise<Camelize<DiscordStageInstance>>;
1091
+ editStageInstance: (channelId: BigString, topic: string, reason?: string) => Promise<CamelizedDiscordStageInstance>;
1084
1092
  /**
1085
1093
  * Edits the voice state of another user.
1086
1094
  *
@@ -1099,7 +1107,7 @@ export interface RestManager {
1099
1107
  * Edits a webhook.
1100
1108
  *
1101
1109
  * @param webhookId - The ID of the webhook to edit.
1102
- * @returns An instance of the edited {@link DiscordWebhook}.
1110
+ * @returns An instance of the edited {@link CamelizedDiscordWebhook}.
1103
1111
  *
1104
1112
  * @remarks
1105
1113
  * Requires the `MANAGE_WEBHOOKS` permission.
@@ -1108,7 +1116,7 @@ export interface RestManager {
1108
1116
  *
1109
1117
  * @see {@link https://discord.com/developers/docs/resources/webhook#edit-webhook}
1110
1118
  */
1111
- editWebhook: (webhookId: BigString, options: ModifyWebhook) => Promise<Camelize<DiscordWebhook>>;
1119
+ editWebhook: (webhookId: BigString, options: ModifyWebhook) => Promise<CamelizedDiscordWebhook>;
1112
1120
  /**
1113
1121
  * Edits a webhook message.
1114
1122
  *
@@ -1116,7 +1124,7 @@ export interface RestManager {
1116
1124
  * @param token - The webhook token, used to edit the message.
1117
1125
  * @param messageId - The ID of the message to edit.
1118
1126
  * @param options - The parameters for the edit of the message.
1119
- * @returns An instance of the edited {@link DiscordMessage}.
1127
+ * @returns An instance of the edited {@link CamelizedDiscordMessage}.
1120
1128
  *
1121
1129
  * @remarks
1122
1130
  * Fires a _Message Update_ gateway event.
@@ -1125,13 +1133,13 @@ export interface RestManager {
1125
1133
  */
1126
1134
  editWebhookMessage: (webhookId: BigString, token: string, messageId: BigString, options: InteractionCallbackData & {
1127
1135
  threadId?: BigString;
1128
- }) => Promise<Camelize<DiscordMessage>>;
1136
+ }) => Promise<CamelizedDiscordMessage>;
1129
1137
  /**
1130
1138
  * Edits a webhook using the webhook token, thereby bypassing the need for authentication + permissions.
1131
1139
  *
1132
1140
  * @param webhookId - The ID of the webhook to edit.
1133
1141
  * @param token - The webhook token, used to edit the webhook.
1134
- * @returns An instance of the edited {@link DiscordWebhook}.
1142
+ * @returns An instance of the edited {@link CamelizedDiscordWebhook}.
1135
1143
  *
1136
1144
  * @remarks
1137
1145
  * Requires the `MANAGE_WEBHOOKS` permission.
@@ -1140,7 +1148,7 @@ export interface RestManager {
1140
1148
  *
1141
1149
  * @see {@link https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token}
1142
1150
  */
1143
- editWebhookWithToken: (webhookId: BigString, token: string, options: Omit<ModifyWebhook, 'channelId'>) => Promise<Camelize<DiscordWebhook>>;
1151
+ editWebhookWithToken: (webhookId: BigString, token: string, options: Omit<ModifyWebhook, 'channelId'>) => Promise<CamelizedDiscordWebhook>;
1144
1152
  /**
1145
1153
  * Edits a guild's welcome screen.
1146
1154
  *
@@ -1155,7 +1163,7 @@ export interface RestManager {
1155
1163
  *
1156
1164
  * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen}
1157
1165
  */
1158
- editWelcomeScreen: (guildId: BigString, options: Camelize<DiscordModifyGuildWelcomeScreen>) => Promise<Camelize<DiscordWelcomeScreen>>;
1166
+ editWelcomeScreen: (guildId: BigString, options: CamelizedDiscordModifyGuildWelcomeScreen) => Promise<CamelizedDiscordWelcomeScreen>;
1159
1167
  /**
1160
1168
  * Edits the settings of a guild's widget.
1161
1169
  *
@@ -1169,27 +1177,27 @@ export interface RestManager {
1169
1177
  *
1170
1178
  * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-widget}
1171
1179
  */
1172
- editWidgetSettings: (guildId: BigString, options: Camelize<DiscordGuildWidgetSettings>) => Promise<Camelize<DiscordGuildWidgetSettings>>;
1180
+ editWidgetSettings: (guildId: BigString, options: CamelizedDiscordGuildWidgetSettings) => Promise<CamelizedDiscordGuildWidgetSettings>;
1173
1181
  /**
1174
1182
  * Executes a webhook, causing a message to be posted in the channel configured for the webhook.
1175
1183
  *
1176
1184
  * @param webhookId - The ID of the webhook to execute.
1177
1185
  * @param token - The webhook token, used to execute the webhook.
1178
1186
  * @param options - The parameters for the execution of the webhook.
1179
- * @returns An instance of the created {@link DiscordMessage}, or `undefined` if the {@link ExecuteWebhook.wait | wait} property of the {@link options} object parameter is set to `false`.
1187
+ * @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`.
1180
1188
  *
1181
1189
  * @remarks
1182
1190
  * If the webhook channel is a forum channel, you must provide a value for either `threadId` or `threadName`.
1183
1191
  *
1184
1192
  * @see {@link https://discord.com/developers/docs/resources/webhook#execute-webhook}
1185
1193
  */
1186
- executeWebhook: (webhookId: BigString, token: string, options: ExecuteWebhook) => Promise<Camelize<DiscordMessage> | undefined>;
1194
+ executeWebhook: (webhookId: BigString, token: string, options: ExecuteWebhook) => Promise<CamelizedDiscordMessage | undefined>;
1187
1195
  /**
1188
1196
  * Follows an announcement channel, allowing messages posted within it to be cross-posted into the target channel.
1189
1197
  *
1190
1198
  * @param sourceChannelId - The ID of the announcement channel to follow.
1191
1199
  * @param targetChannelId - The ID of the target channel - the channel to cross-post to.
1192
- * @returns An instance of {@link DiscordFollowedChannel}.
1200
+ * @returns An instance of {@link CamelizedDiscordFollowedChannel}.
1193
1201
  *
1194
1202
  * @remarks
1195
1203
  * Requires the `MANAGE_WEBHOOKS` permission in the __target channel__.
@@ -1198,12 +1206,12 @@ export interface RestManager {
1198
1206
  *
1199
1207
  * @see {@link https://discord.com/developers/docs/resources/channel#follow-announcement-channel}
1200
1208
  */
1201
- followAnnouncement: (sourceChannelId: BigString, targetChannelId: BigString) => Promise<Camelize<DiscordFollowedChannel>>;
1209
+ followAnnouncement: (sourceChannelId: BigString, targetChannelId: BigString) => Promise<CamelizedDiscordFollowedChannel>;
1202
1210
  /**
1203
1211
  * Gets the list of all active threads for a guild.
1204
1212
  *
1205
1213
  * @param guildId - The ID of the guild to get the threads of.
1206
- * @returns An instance of {@link DiscordActiveThreads}.
1214
+ * @returns An instance of {@link CamelizedDiscordActiveThreads}.
1207
1215
  *
1208
1216
  * @remarks
1209
1217
  * Returns both public and private threads.
@@ -1212,9 +1220,9 @@ export interface RestManager {
1212
1220
  *
1213
1221
  * @see {@link https://discord.com/developers/docs/resources/guild#list-active-guild-threads}
1214
1222
  */
1215
- getActiveThreads: (guildId: BigString) => Promise<Camelize<DiscordActiveThreads>>;
1223
+ getActiveThreads: (guildId: BigString) => Promise<CamelizedDiscordActiveThreads>;
1216
1224
  /** Get the applications info */
1217
- getApplicationInfo: () => Promise<Camelize<DiscordApplication>>;
1225
+ getApplicationInfo: () => Promise<CamelizedDiscordApplication>;
1218
1226
  /**
1219
1227
  * Gets the permissions of a guild application command.
1220
1228
  *
@@ -1224,7 +1232,7 @@ export interface RestManager {
1224
1232
  *
1225
1233
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions}
1226
1234
  */
1227
- getApplicationCommandPermission: (guildId: BigString, commandId: BigString) => Promise<Camelize<DiscordApplicationCommandPermissions>>;
1235
+ getApplicationCommandPermission: (guildId: BigString, commandId: BigString) => Promise<CamelizedDiscordApplicationCommandPermissions>;
1228
1236
  /**
1229
1237
  * Gets the permissions of all application commands registered in a guild by the ID of the guild.
1230
1238
  *
@@ -1233,7 +1241,7 @@ export interface RestManager {
1233
1241
  *
1234
1242
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command-permissions}
1235
1243
  */
1236
- getApplicationCommandPermissions: (guildId: BigString) => Promise<Camelize<DiscordApplicationCommandPermissions[]>>;
1244
+ getApplicationCommandPermissions: (guildId: BigString) => Promise<CamelizedDiscordApplicationCommandPermissions[]>;
1237
1245
  /**
1238
1246
  * Gets a guild's audit log.
1239
1247
  *
@@ -1246,57 +1254,57 @@ export interface RestManager {
1246
1254
  *
1247
1255
  * @see {@link https://discord.com/developers/docs/resources/audit-log#get-guild-audit-log}
1248
1256
  */
1249
- getAuditLog: (guildId: BigString, options?: GetGuildAuditLog) => Promise<Camelize<DiscordAuditLog>>;
1257
+ getAuditLog: (guildId: BigString, options?: GetGuildAuditLog) => Promise<CamelizedDiscordAuditLog>;
1250
1258
  /**
1251
1259
  * Gets an automod rule by its ID.
1252
1260
  *
1253
1261
  * @param guildId - The ID of the guild to get the rule of.
1254
1262
  * @param ruleId - The ID of the rule to get.
1255
- * @returns An instance of {@link DiscordAutoModerationRule}.
1263
+ * @returns An instance of {@link CamelizedDiscordAutoModerationRule}.
1256
1264
  *
1257
1265
  * @remarks
1258
1266
  * Requires the `MANAGE_GUILD` permission.
1259
1267
  *
1260
1268
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#get-auto-moderation-rule}
1261
1269
  */
1262
- getAutomodRule: (guildId: BigString, ruleId: BigString) => Promise<Camelize<DiscordAutoModerationRule>>;
1270
+ getAutomodRule: (guildId: BigString, ruleId: BigString) => Promise<CamelizedDiscordAutoModerationRule>;
1263
1271
  /**
1264
1272
  * Gets the list of automod rules for a guild.
1265
1273
  *
1266
1274
  * @param guildId - The ID of the guild to get the rules from.
1267
- * @returns A collection of {@link DiscordAutoModerationRule} objects assorted by rule ID.
1275
+ * @returns A collection of {@link CamelizedDiscordAutoModerationRule} objects assorted by rule ID.
1268
1276
  *
1269
1277
  * @remarks
1270
1278
  * Requires the `MANAGE_GUILD` permission.
1271
1279
  *
1272
1280
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#list-auto-moderation-rules-for-guild}
1273
1281
  */
1274
- getAutomodRules: (guildId: BigString) => Promise<Camelize<DiscordAutoModerationRule[]>>;
1282
+ getAutomodRules: (guildId: BigString) => Promise<CamelizedDiscordAutoModerationRule[]>;
1275
1283
  /**
1276
1284
  * Gets the list of available voice regions.
1277
1285
  *
1278
1286
  * @returns A collection of {@link VoiceRegions | VoiceRegion} objects assorted by voice region ID.
1279
1287
  */
1280
- getAvailableVoiceRegions: () => Promise<Camelize<DiscordVoiceRegion[]>>;
1288
+ getAvailableVoiceRegions: () => Promise<CamelizedDiscordVoiceRegion[]>;
1281
1289
  /**
1282
1290
  * Gets a ban by user ID.
1283
1291
  *
1284
1292
  * @param guildId - The ID of the guild to get the ban from.
1285
1293
  * @param userId - The ID of the user to get the ban for.
1286
- * @returns An instance of {@link DiscordBan}.
1294
+ * @returns An instance of {@link CamelizedDiscordBan}.
1287
1295
  *
1288
1296
  * @remarks
1289
1297
  * Requires the `BAN_MEMBERS` permission.
1290
1298
  *
1291
1299
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-ban}
1292
1300
  */
1293
- getBan: (guildId: BigString, userId: BigString) => Promise<Camelize<DiscordBan>>;
1301
+ getBan: (guildId: BigString, userId: BigString) => Promise<CamelizedDiscordBan>;
1294
1302
  /**
1295
1303
  * Gets the list of bans for a guild.
1296
1304
  *
1297
1305
  * @param guildId - The ID of the guild to get the list of bans for.
1298
1306
  * @param options - The parameters for the fetching of the list of bans.
1299
- * @returns A collection of {@link DiscordBan} objects assorted by user ID.
1307
+ * @returns A collection of {@link CamelizedDiscordBan} objects assorted by user ID.
1300
1308
  *
1301
1309
  * @remarks
1302
1310
  * Requires the `BAN_MEMBERS` permission.
@@ -1305,24 +1313,24 @@ export interface RestManager {
1305
1313
  *
1306
1314
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-bans}
1307
1315
  */
1308
- getBans: (guildId: BigString, options?: GetBans) => Promise<Camelize<DiscordBan[]>>;
1316
+ getBans: (guildId: BigString, options?: GetBans) => Promise<CamelizedDiscordBan[]>;
1309
1317
  /**
1310
1318
  * Gets a channel by its ID.
1311
1319
  *
1312
1320
  * @param channelId - The ID of the channel to get.
1313
- * @returns An instance of {@link DiscordChannel}.
1321
+ * @returns An instance of {@link CamelizedDiscordChannel}.
1314
1322
  *
1315
1323
  * @remarks
1316
1324
  * If the channel is a thread, a {@link ThreadMember} object is included in the result.
1317
1325
  *
1318
1326
  * @see {@link https://discord.com/developers/docs/resources/channel#get-channel}
1319
1327
  */
1320
- getChannel: (channelId: BigString) => Promise<Camelize<DiscordChannel>>;
1328
+ getChannel: (channelId: BigString) => Promise<CamelizedDiscordChannel>;
1321
1329
  /**
1322
1330
  * Gets the list of invites for a channel.
1323
1331
  *
1324
1332
  * @param channelId - The ID of the channel to get the invites of.
1325
- * @returns A collection of {@link DiscordInviteMetadata} objects assorted by invite code.
1333
+ * @returns A collection of {@link CamelizedDiscordInviteMetadata} objects assorted by invite code.
1326
1334
  *
1327
1335
  * @remarks
1328
1336
  * Requires the `MANAGE_CHANNELS` permission.
@@ -1331,59 +1339,59 @@ export interface RestManager {
1331
1339
  *
1332
1340
  * @see {@link https://discord.com/developers/docs/resources/channel#get-channel-invites}
1333
1341
  */
1334
- getChannelInvites: (channelId: BigString) => Promise<Camelize<DiscordInviteMetadata[]>>;
1342
+ getChannelInvites: (channelId: BigString) => Promise<CamelizedDiscordInviteMetadata[]>;
1335
1343
  /**
1336
1344
  * Gets the list of channels for a guild.
1337
1345
  *
1338
1346
  * @param guildId - The ID of the guild to get the channels of.
1339
- * @returns A collection of {@link DiscordChannel} objects assorted by channel ID.
1347
+ * @returns A collection of {@link CamelizedDiscordChannel} objects assorted by channel ID.
1340
1348
  *
1341
1349
  * @remarks
1342
1350
  * Excludes threads.
1343
1351
  *
1344
1352
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-channels}
1345
1353
  */
1346
- getChannels: (guildId: BigString) => Promise<Camelize<DiscordChannel[]>>;
1354
+ getChannels: (guildId: BigString) => Promise<CamelizedDiscordChannel[]>;
1347
1355
  /**
1348
1356
  * Gets a list of webhooks for a channel.
1349
1357
  *
1350
1358
  * @param channelId - The ID of the channel which to get the webhooks of.
1351
- * @returns A collection of {@link DiscordWebhook} objects assorted by webhook ID.
1359
+ * @returns A collection of {@link CamelizedDiscordWebhook} objects assorted by webhook ID.
1352
1360
  *
1353
1361
  * @remarks
1354
1362
  * Requires the `MANAGE_WEBHOOKS` permission.
1355
1363
  *
1356
1364
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-channel-webhooks}
1357
1365
  */
1358
- getChannelWebhooks: (channelId: BigString) => Promise<Camelize<DiscordWebhook[]>>;
1366
+ getChannelWebhooks: (channelId: BigString) => Promise<CamelizedDiscordWebhook[]>;
1359
1367
  /**
1360
1368
  * Gets or creates a DM channel with a user.
1361
1369
  *
1362
1370
  * @param userId - The ID of the user to create the DM channel with.
1363
- * @returns An instance of {@link DiscordChannel}.
1371
+ * @returns An instance of {@link CamelizedDiscordChannel}.
1364
1372
  *
1365
1373
  * @see {@link https://discord.com/developers/docs/resources/user#create-dm}
1366
1374
  */
1367
- getDmChannel: (userId: BigString) => Promise<Camelize<DiscordChannel>>;
1375
+ getDmChannel: (userId: BigString) => Promise<CamelizedDiscordChannel>;
1368
1376
  /**
1369
1377
  * Gets an emoji by its ID.
1370
1378
  *
1371
1379
  * @param guildId - The ID of the guild from which to get the emoji.
1372
1380
  * @param emojiId - The ID of the emoji to get.
1373
- * @returns An instance of {@link DiscordEmoji}.
1381
+ * @returns An instance of {@link CamelizedDiscordEmoji}.
1374
1382
  *
1375
1383
  * @see {@link https://discord.com/developers/docs/resources/emoji#get-guild-emoji}
1376
1384
  */
1377
- getEmoji: (guildId: BigString, emojiId: BigString) => Promise<Camelize<DiscordEmoji>>;
1385
+ getEmoji: (guildId: BigString, emojiId: BigString) => Promise<CamelizedDiscordEmoji>;
1378
1386
  /**
1379
1387
  * Gets the list of emojis for a guild.
1380
1388
  *
1381
1389
  * @param guildId - The ID of the guild which to get the emojis of.
1382
- * @returns A collection of {@link DiscordEmoji} objects assorted by emoji ID.
1390
+ * @returns A collection of {@link CamelizedDiscordEmoji} objects assorted by emoji ID.
1383
1391
  *
1384
1392
  * @see {@link https://discord.com/developers/docs/resources/emoji#list-guild-emojis}
1385
1393
  */
1386
- getEmojis: (guildId: BigString) => Promise<Camelize<DiscordEmoji[]>>;
1394
+ getEmojis: (guildId: BigString) => Promise<CamelizedDiscordEmoji[]>;
1387
1395
  /**
1388
1396
  * Gets a follow-up message to an interaction by the ID of the message.
1389
1397
  *
@@ -1400,9 +1408,9 @@ export interface RestManager {
1400
1408
  *
1401
1409
  * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message}
1402
1410
  */
1403
- getFollowupMessage: (token: string, messageId: BigString) => Promise<Camelize<DiscordMessage>>;
1411
+ getFollowupMessage: (token: string, messageId: BigString) => Promise<CamelizedDiscordMessage>;
1404
1412
  /** Get the bots Gateway metadata that can help during the operation of large or sharded bots. */
1405
- getGatewayBot: () => Promise<Camelize<DiscordGetGatewayBot>>;
1413
+ getGatewayBot: () => Promise<CamelizedDiscordGetGatewayBot>;
1406
1414
  /**
1407
1415
  * Gets a global application command by its ID.
1408
1416
  *
@@ -1411,7 +1419,7 @@ export interface RestManager {
1411
1419
  *
1412
1420
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-command}
1413
1421
  */
1414
- getGlobalApplicationCommand: (commandId: BigString) => Promise<Camelize<DiscordApplicationCommand>>;
1422
+ getGlobalApplicationCommand: (commandId: BigString) => Promise<CamelizedDiscordApplicationCommand>;
1415
1423
  /**
1416
1424
  * Gets the list of your bot's global application commands.
1417
1425
  *
@@ -1419,7 +1427,7 @@ export interface RestManager {
1419
1427
  *
1420
1428
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands}
1421
1429
  */
1422
- getGlobalApplicationCommands: () => Promise<Camelize<DiscordApplicationCommand[]>>;
1430
+ getGlobalApplicationCommands: () => Promise<CamelizedDiscordApplicationCommand[]>;
1423
1431
  /**
1424
1432
  * Gets a guild by its ID.
1425
1433
  *
@@ -1431,7 +1439,7 @@ export interface RestManager {
1431
1439
  */
1432
1440
  getGuild: (guildId: BigString, options?: {
1433
1441
  counts?: boolean;
1434
- }) => Promise<Camelize<DiscordGuild>>;
1442
+ }) => Promise<CamelizedDiscordGuild>;
1435
1443
  /**
1436
1444
  * Gets a guild application command by its ID.
1437
1445
  *
@@ -1441,7 +1449,7 @@ export interface RestManager {
1441
1449
  *
1442
1450
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command}
1443
1451
  */
1444
- getGuildApplicationCommand: (commandId: BigString, guildId: BigString) => Promise<Camelize<DiscordApplicationCommand>>;
1452
+ getGuildApplicationCommand: (commandId: BigString, guildId: BigString) => Promise<CamelizedDiscordApplicationCommand>;
1445
1453
  /**
1446
1454
  * Gets the list of application commands registered by your bot in a guild.
1447
1455
  *
@@ -1450,7 +1458,7 @@ export interface RestManager {
1450
1458
  *
1451
1459
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-commandss}
1452
1460
  */
1453
- getGuildApplicationCommands: (guildId: BigString) => Promise<Camelize<DiscordApplicationCommand[]>>;
1461
+ getGuildApplicationCommands: (guildId: BigString) => Promise<CamelizedDiscordApplicationCommand[]>;
1454
1462
  /**
1455
1463
  * Gets the preview of a guild by a guild's ID.
1456
1464
  *
@@ -1462,30 +1470,30 @@ export interface RestManager {
1462
1470
  *
1463
1471
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-preview}
1464
1472
  */
1465
- getGuildPreview: (guildId: BigString) => Promise<Camelize<DiscordGuildPreview>>;
1473
+ getGuildPreview: (guildId: BigString) => Promise<CamelizedDiscordGuildPreview>;
1466
1474
  /**
1467
1475
  * Returns a sticker object for the given guild and sticker IDs.
1468
1476
  *
1469
1477
  * @param guildId The ID of the guild to get
1470
1478
  * @param stickerId The ID of the sticker to get
1471
- * @return A {@link DiscordSticker}
1479
+ * @return A {@link CamelizedDiscordSticker}
1472
1480
  *
1473
1481
  * @remarks Includes the user field if the bot has the `MANAGE_EMOJIS_AND_STICKERS` permission.
1474
1482
  *
1475
1483
  * @see {@link https://discord.com/developers/docs/resources/sticker#get-guild-sticker}
1476
1484
  */
1477
- getGuildSticker: (guildId: BigString, stickerId: BigString) => Promise<Camelize<DiscordSticker>>;
1485
+ getGuildSticker: (guildId: BigString, stickerId: BigString) => Promise<CamelizedDiscordSticker>;
1478
1486
  /**
1479
1487
  * Returns an array of sticker objects for the given guild.
1480
1488
  *
1481
1489
  * @param guildId The ID of the guild to get
1482
- * @returns A collection of {@link DiscordSticker} objects assorted by sticker ID.
1490
+ * @returns A collection of {@link CamelizedDiscordSticker} objects assorted by sticker ID.
1483
1491
  *
1484
1492
  * @remarks Includes user fields if the bot has the `MANAGE_EMOJIS_AND_STICKERS` permission.
1485
1493
  *
1486
1494
  * @see {@link https://discord.com/developers/docs/resources/sticker#list-guild-stickers}
1487
1495
  */
1488
- getGuildStickers: (guildId: BigString) => Promise<Camelize<DiscordSticker[]>>;
1496
+ getGuildStickers: (guildId: BigString) => Promise<CamelizedDiscordSticker[]>;
1489
1497
  /**
1490
1498
  * Gets a template by its code.
1491
1499
  *
@@ -1497,7 +1505,7 @@ export interface RestManager {
1497
1505
  *
1498
1506
  * @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-template}
1499
1507
  */
1500
- getGuildTemplate: (templateCode: string) => Promise<Camelize<DiscordTemplate>>;
1508
+ getGuildTemplate: (templateCode: string) => Promise<CamelizedDiscordTemplate>;
1501
1509
  /**
1502
1510
  * Gets the list of templates for a guild.
1503
1511
  *
@@ -1509,19 +1517,19 @@ export interface RestManager {
1509
1517
  *
1510
1518
  * @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-templates}
1511
1519
  */
1512
- getGuildTemplates: (guildId: BigString) => Promise<Camelize<DiscordTemplate[]>>;
1520
+ getGuildTemplates: (guildId: BigString) => Promise<CamelizedDiscordTemplate[]>;
1513
1521
  /**
1514
1522
  * Gets the list of webhooks for a guild.
1515
1523
  *
1516
1524
  * @param guildId - The ID of the guild to get the list of webhooks for.
1517
- * @returns A collection of {@link DiscordWebhook} objects assorted by webhook ID.
1525
+ * @returns A collection of {@link CamelizedDiscordWebhook} objects assorted by webhook ID.
1518
1526
  *
1519
1527
  * @remarks
1520
1528
  * Requires the `MANAGE_WEBHOOKS` permission.
1521
1529
  *
1522
1530
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-guild-webhooks}
1523
1531
  */
1524
- getGuildWebhooks: (guildId: BigString) => Promise<Camelize<DiscordWebhook[]>>;
1532
+ getGuildWebhooks: (guildId: BigString) => Promise<CamelizedDiscordWebhook[]>;
1525
1533
  /**
1526
1534
  * Gets the list of integrations attached to a guild.
1527
1535
  *
@@ -1533,17 +1541,17 @@ export interface RestManager {
1533
1541
  *
1534
1542
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-integrations}
1535
1543
  */
1536
- getIntegrations: (guildId: BigString) => Promise<Camelize<DiscordIntegration[]>>;
1544
+ getIntegrations: (guildId: BigString) => Promise<CamelizedDiscordIntegration[]>;
1537
1545
  /**
1538
1546
  * Gets an invite to a channel by its invite code.
1539
1547
  *
1540
1548
  * @param inviteCode - The invite code of the invite to get.
1541
1549
  * @param options - The parameters for the fetching of the invite.
1542
- * @returns An instance of {@link DiscordInviteMetadata}.
1550
+ * @returns An instance of {@link CamelizedDiscordInviteMetadata}.
1543
1551
  *
1544
1552
  * @see {@link https://discord.com/developers/docs/resources/invite#get-invite}
1545
1553
  */
1546
- getInvite: (inviteCode: string, options?: GetInvite) => Promise<Camelize<DiscordInviteMetadata>>;
1554
+ getInvite: (inviteCode: string, options?: GetInvite) => Promise<CamelizedDiscordInviteMetadata>;
1547
1555
  /**
1548
1556
  * Gets the list of invites for a guild.
1549
1557
  *
@@ -1555,7 +1563,7 @@ export interface RestManager {
1555
1563
  *
1556
1564
  * @see {@link https://discord.com/developers/docs/resources/invite#get-invites}
1557
1565
  */
1558
- getInvites: (guildId: BigString) => Promise<Camelize<DiscordInviteMetadata[]>>;
1566
+ getInvites: (guildId: BigString) => Promise<CamelizedDiscordInviteMetadata[]>;
1559
1567
  /**
1560
1568
  * Gets a message from a channel by the ID of the message.
1561
1569
  *
@@ -1571,7 +1579,7 @@ export interface RestManager {
1571
1579
  *
1572
1580
  * @see {@link https://discord.com/developers/docs/resources/channel#get-channel-message}
1573
1581
  */
1574
- getMessage: (channelId: BigString, messageId: BigString) => Promise<Camelize<DiscordMessage>>;
1582
+ getMessage: (channelId: BigString, messageId: BigString) => Promise<CamelizedDiscordMessage>;
1575
1583
  /**
1576
1584
  * Gets multiple messages from a channel.
1577
1585
  *
@@ -1587,7 +1595,7 @@ export interface RestManager {
1587
1595
  *
1588
1596
  * @see {@link https://discord.com/developers/docs/resources/channel#get-channel-messages}
1589
1597
  */
1590
- getMessages: (channelId: BigString, options?: GetMessagesOptions) => Promise<Camelize<DiscordMessage[]>>;
1598
+ getMessages: (channelId: BigString, options?: GetMessagesOptions) => Promise<CamelizedDiscordMessage[]>;
1591
1599
  /**
1592
1600
  * Returns the list of sticker packs available to Nitro subscribers.
1593
1601
  *
@@ -1595,7 +1603,7 @@ export interface RestManager {
1595
1603
  *
1596
1604
  * @see {@link https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs}
1597
1605
  */
1598
- getNitroStickerPacks: () => Promise<Camelize<DiscordStickerPack[]>>;
1606
+ getNitroStickerPacks: () => Promise<CamelizedDiscordStickerPack[]>;
1599
1607
  /**
1600
1608
  * Gets the initial message response to an interaction.
1601
1609
  *
@@ -1611,7 +1619,7 @@ export interface RestManager {
1611
1619
  *
1612
1620
  * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#get-original-interaction-response}
1613
1621
  */
1614
- getOriginalInteractionResponse: (token: string) => Promise<Camelize<DiscordMessage>>;
1622
+ getOriginalInteractionResponse: (token: string) => Promise<CamelizedDiscordMessage>;
1615
1623
  /**
1616
1624
  * Gets the pinned messages for a channel.
1617
1625
  *
@@ -1626,13 +1634,13 @@ export interface RestManager {
1626
1634
  *
1627
1635
  * @see {@link https://discord.com/developers/docs/resources/channel#get-pinned-messages}
1628
1636
  */
1629
- getPinnedMessages: (channelId: BigString) => Promise<Camelize<DiscordMessage[]>>;
1637
+ getPinnedMessages: (channelId: BigString) => Promise<CamelizedDiscordMessage[]>;
1630
1638
  /**
1631
1639
  * Gets the list of private archived threads for a channel.
1632
1640
  *
1633
1641
  * @param channelId - The ID of the channel to get the archived threads for.
1634
1642
  * @param options - The parameters for the fetching of threads.
1635
- * @returns An instance of {@link DiscordArchivedThreads}.
1643
+ * @returns An instance of {@link CamelizedDiscordArchivedThreads}.
1636
1644
  *
1637
1645
  * @remarks
1638
1646
  * Requires the `READ_MESSAGE_HISTORY` permission.
@@ -1644,13 +1652,13 @@ export interface RestManager {
1644
1652
  *
1645
1653
  * @see {@link https://discord.com/developers/docs/resources/channel#list-private-archived-threads}
1646
1654
  */
1647
- getPrivateArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<Camelize<DiscordArchivedThreads>>;
1655
+ getPrivateArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<CamelizedDiscordArchivedThreads>;
1648
1656
  /**
1649
1657
  * Gets the list of private archived threads the bot is a member of for a channel.
1650
1658
  *
1651
1659
  * @param channelId - The ID of the channel to get the archived threads for.
1652
1660
  * @param options - The parameters for the fetching of threads.
1653
- * @returns An instance of {@link DiscordArchivedThreads}.
1661
+ * @returns An instance of {@link CamelizedDiscordArchivedThreads}.
1654
1662
  *
1655
1663
  * @remarks
1656
1664
  * Requires the `READ_MESSAGE_HISTORY` permission.
@@ -1661,7 +1669,7 @@ export interface RestManager {
1661
1669
  *
1662
1670
  * @see {@link https://discord.com/developers/docs/resources/channel#list-joined-private-archived-threads}
1663
1671
  */
1664
- getPrivateJoinedArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<Camelize<DiscordArchivedThreads>>;
1672
+ getPrivateJoinedArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<CamelizedDiscordArchivedThreads>;
1665
1673
  /**
1666
1674
  * Gets the number of members that would be kicked from a guild during pruning.
1667
1675
  *
@@ -1674,7 +1682,7 @@ export interface RestManager {
1674
1682
  *
1675
1683
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-prune-count}
1676
1684
  */
1677
- getPruneCount: (guildId: BigString, options?: GetGuildPruneCountQuery) => Promise<Camelize<DiscordPrunedCount>>;
1685
+ getPruneCount: (guildId: BigString, options?: GetGuildPruneCountQuery) => Promise<CamelizedDiscordPrunedCount>;
1678
1686
  /**
1679
1687
  * Gets the list of public archived threads for a channel.
1680
1688
  *
@@ -1692,7 +1700,7 @@ export interface RestManager {
1692
1700
  *
1693
1701
  * @see {@link https://discord.com/developers/docs/resources/channel#list-public-archived-threads}
1694
1702
  */
1695
- getPublicArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<Camelize<DiscordArchivedThreads>>;
1703
+ getPublicArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<CamelizedDiscordArchivedThreads>;
1696
1704
  /**
1697
1705
  * Gets the list of roles for a guild.
1698
1706
  *
@@ -1704,7 +1712,7 @@ export interface RestManager {
1704
1712
  *
1705
1713
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-roles}
1706
1714
  */
1707
- getRoles: (guildId: BigString) => Promise<Camelize<DiscordRole[]>>;
1715
+ getRoles: (guildId: BigString) => Promise<CamelizedDiscordRole[]>;
1708
1716
  /**
1709
1717
  * Gets a scheduled event by its ID.
1710
1718
  *
@@ -1717,7 +1725,7 @@ export interface RestManager {
1717
1725
  */
1718
1726
  getScheduledEvent: (guildId: BigString, eventId: BigString, options?: {
1719
1727
  withUserCount?: boolean;
1720
- }) => Promise<Camelize<DiscordScheduledEvent>>;
1728
+ }) => Promise<CamelizedDiscordScheduledEvent>;
1721
1729
  /**
1722
1730
  * Gets the list of scheduled events for a guild.
1723
1731
  *
@@ -1727,7 +1735,7 @@ export interface RestManager {
1727
1735
  *
1728
1736
  * @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild}
1729
1737
  */
1730
- getScheduledEvents: (guildId: BigString, options?: GetScheduledEvents) => Promise<Camelize<DiscordScheduledEvent[]>>;
1738
+ getScheduledEvents: (guildId: BigString, options?: GetScheduledEvents) => Promise<CamelizedDiscordScheduledEvent[]>;
1731
1739
  /**
1732
1740
  * Gets the list of subscribers to a scheduled event from a guild.
1733
1741
  *
@@ -1744,51 +1752,51 @@ export interface RestManager {
1744
1752
  * @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users}
1745
1753
  */
1746
1754
  getScheduledEventUsers: (guildId: BigString, eventId: BigString, options?: GetScheduledEventUsers) => Promise<Array<{
1747
- user: Camelize<DiscordUser>;
1748
- member?: Camelize<DiscordMember>;
1755
+ user: CamelizedDiscordUser;
1756
+ member?: CamelizedDiscordMember;
1749
1757
  }>>;
1750
1758
  /** Get the bots Gateway metadata that can help during the operation of large or sharded bots. */
1751
- getSessionInfo: () => Promise<Camelize<DiscordGetGatewayBot>>;
1759
+ getSessionInfo: () => Promise<CamelizedDiscordGetGatewayBot>;
1752
1760
  /**
1753
1761
  * Gets the stage instance associated with a stage channel, if one exists.
1754
1762
  *
1755
1763
  * @param channelId - The ID of the stage channel the stage instance is associated with.
1756
- * @returns An instance of {@link DiscordStageInstance}.
1764
+ * @returns An instance of {@link CamelizedDiscordStageInstance}.
1757
1765
  *
1758
1766
  * @see {@link https://discord.com/developers/docs/resources/stage-instance#get-stage-instance}
1759
1767
  */
1760
- getStageInstance: (channelId: BigString) => Promise<Camelize<DiscordStageInstance>>;
1768
+ getStageInstance: (channelId: BigString) => Promise<CamelizedDiscordStageInstance>;
1761
1769
  /**
1762
1770
  * Returns a sticker object for the given sticker ID.
1763
1771
  *
1764
1772
  * @param stickerId The ID of the sticker to get
1765
- * @returns A {@link DiscordSticker}
1773
+ * @returns A {@link CamelizedDiscordSticker}
1766
1774
  *
1767
1775
  * @see {@link https://discord.com/developers/docs/resources/sticker#get-sticker}
1768
1776
  */
1769
- getSticker: (stickerId: BigString) => Promise<Camelize<DiscordSticker>>;
1777
+ getSticker: (stickerId: BigString) => Promise<CamelizedDiscordSticker>;
1770
1778
  /**
1771
1779
  * Gets a thread member by their user ID.
1772
1780
  *
1773
1781
  * @param channelId - The ID of the thread to get the thread member of.
1774
1782
  * @param userId - The user ID of the thread member to get.
1775
- * @returns An instance of {@link DiscordThreadMember}.
1783
+ * @returns An instance of {@link CamelizedDiscordThreadMember}.
1776
1784
  *
1777
1785
  * @see {@link https://discord.com/developers/docs/resources/channel#get-thread-member}
1778
1786
  */
1779
- getThreadMember: (channelId: BigString, userId: BigString) => Promise<Camelize<DiscordThreadMember>>;
1787
+ getThreadMember: (channelId: BigString, userId: BigString) => Promise<CamelizedDiscordThreadMember>;
1780
1788
  /**
1781
1789
  * Gets the list of thread members for a thread.
1782
1790
  *
1783
1791
  * @param channelId - The ID of the thread to get the thread members of.
1784
- * @returns A collection of {@link DiscordThreadMember} assorted by user ID.
1792
+ * @returns A collection of {@link CamelizedDiscordThreadMember} assorted by user ID.
1785
1793
  *
1786
1794
  * @remarks
1787
1795
  * Requires the application to have the `GUILD_MEMBERS` privileged intent enabled.
1788
1796
  *
1789
1797
  * @see {@link https://discord.com/developers/docs/resources/channel#list-thread-members}
1790
1798
  */
1791
- getThreadMembers: (channelId: BigString) => Promise<Camelize<DiscordThreadMember[]>>;
1799
+ getThreadMembers: (channelId: BigString) => Promise<CamelizedDiscordThreadMember[]>;
1792
1800
  /**
1793
1801
  * Gets the list of users that reacted with an emoji to a message.
1794
1802
  *
@@ -1800,14 +1808,14 @@ export interface RestManager {
1800
1808
  *
1801
1809
  * @see {@link https://discord.com/developers/docs/resources/channel#get-reactions}
1802
1810
  */
1803
- getReactions: (channelId: BigString, messageId: BigString, reaction: string, options?: GetReactions) => Promise<Camelize<DiscordUser[]>>;
1811
+ getReactions: (channelId: BigString, messageId: BigString, reaction: string, options?: GetReactions) => Promise<CamelizedDiscordUser[]>;
1804
1812
  /**
1805
1813
  * Get a user's data from the api
1806
1814
  *
1807
1815
  * @param id The user's id
1808
- * @returns {Camelize<DiscordUser>}
1816
+ * @returns {CamelizedDiscordUser}
1809
1817
  */
1810
- getUser: (id: BigString) => Promise<Camelize<DiscordUser>>;
1818
+ getUser: (id: BigString) => Promise<CamelizedDiscordUser>;
1811
1819
  /**
1812
1820
  * Gets information about the vanity url of a guild.
1813
1821
  *
@@ -1821,7 +1829,7 @@ export interface RestManager {
1821
1829
  *
1822
1830
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-vanity-url}
1823
1831
  */
1824
- getVanityUrl: (guildId: BigString) => Promise<Camelize<DiscordVanityUrl>>;
1832
+ getVanityUrl: (guildId: BigString) => Promise<CamelizedDiscordVanityUrl>;
1825
1833
  /**
1826
1834
  * Gets the list of voice regions for a guild.
1827
1835
  *
@@ -1830,19 +1838,19 @@ export interface RestManager {
1830
1838
  *
1831
1839
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-voice-regions}
1832
1840
  */
1833
- getVoiceRegions: (guildId: BigString) => Promise<Camelize<DiscordVoiceRegion[]>>;
1841
+ getVoiceRegions: (guildId: BigString) => Promise<CamelizedDiscordVoiceRegion[]>;
1834
1842
  /**
1835
1843
  * Gets a webhook by its ID.
1836
1844
  *
1837
1845
  * @param webhookId - The ID of the webhook to get.
1838
- * @returns An instance of {@link DiscordWebhook}.
1846
+ * @returns An instance of {@link CamelizedDiscordWebhook}.
1839
1847
  *
1840
1848
  * @remarks
1841
1849
  * Requires the `MANAGE_WEBHOOKS` permission.
1842
1850
  *
1843
1851
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook}
1844
1852
  */
1845
- getWebhook: (webhookId: BigString) => Promise<Camelize<DiscordWebhook>>;
1853
+ getWebhook: (webhookId: BigString) => Promise<CamelizedDiscordWebhook>;
1846
1854
  /**
1847
1855
  * Gets a webhook message by its ID.
1848
1856
  *
@@ -1850,21 +1858,21 @@ export interface RestManager {
1850
1858
  * @param token - The webhook token, used to get webhook messages.
1851
1859
  * @param messageId - the ID of the webhook message to get.
1852
1860
  * @param options - The parameters for the fetching of the message.
1853
- * @returns An instance of {@link DiscordMessage}.
1861
+ * @returns An instance of {@link CamelizedDiscordMessage}.
1854
1862
  *
1855
1863
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-message}
1856
1864
  */
1857
- getWebhookMessage: (webhookId: BigString, token: string, messageId: BigString, options?: GetWebhookMessageOptions) => Promise<Camelize<DiscordMessage>>;
1865
+ getWebhookMessage: (webhookId: BigString, token: string, messageId: BigString, options?: GetWebhookMessageOptions) => Promise<CamelizedDiscordMessage>;
1858
1866
  /**
1859
1867
  * Gets a webhook using the webhook token, thereby bypassing the need for authentication + permissions.
1860
1868
  *
1861
1869
  * @param webhookId - The ID of the webhook to get.
1862
1870
  * @param token - The webhook token, used to get the webhook.
1863
- * @returns An instance of {@link DiscordWebhook}.
1871
+ * @returns An instance of {@link CamelizedDiscordWebhook}.
1864
1872
  *
1865
1873
  * @see {@link https://discord.com/developers/docs/resources/webhook#get-webhook-with-token}
1866
1874
  */
1867
- getWebhookWithToken: (webhookId: BigString, token: string) => Promise<Camelize<DiscordWebhook>>;
1875
+ getWebhookWithToken: (webhookId: BigString, token: string) => Promise<CamelizedDiscordWebhook>;
1868
1876
  /**
1869
1877
  * Gets the welcome screen for a guild.
1870
1878
  *
@@ -1877,7 +1885,7 @@ export interface RestManager {
1877
1885
  *
1878
1886
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen}
1879
1887
  */
1880
- getWelcomeScreen: (guildId: BigString) => Promise<Camelize<DiscordWelcomeScreen>>;
1888
+ getWelcomeScreen: (guildId: BigString) => Promise<CamelizedDiscordWelcomeScreen>;
1881
1889
  /**
1882
1890
  * Gets the guild widget by guild ID.
1883
1891
  *
@@ -1886,7 +1894,7 @@ export interface RestManager {
1886
1894
  *
1887
1895
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-widget}
1888
1896
  */
1889
- getWidget: (guildId: BigString) => Promise<Camelize<DiscordGuildWidget>>;
1897
+ getWidget: (guildId: BigString) => Promise<CamelizedDiscordGuildWidget>;
1890
1898
  /**
1891
1899
  * Gets the settings of a guild's widget.
1892
1900
  *
@@ -1898,7 +1906,7 @@ export interface RestManager {
1898
1906
  *
1899
1907
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-widget-settings}
1900
1908
  */
1901
- getWidgetSettings: (guildId: BigString) => Promise<Camelize<DiscordGuildWidgetSettings>>;
1909
+ getWidgetSettings: (guildId: BigString) => Promise<CamelizedDiscordGuildWidgetSettings>;
1902
1910
  /**
1903
1911
  * Adds the bot user to a thread.
1904
1912
  *
@@ -1953,7 +1961,7 @@ export interface RestManager {
1953
1961
  *
1954
1962
  * @see {@link https://discord.com/developers/docs/resources/channel#crosspost-message}
1955
1963
  */
1956
- publishMessage: (channelId: BigString, messageId: BigString) => Promise<Camelize<DiscordMessage>>;
1964
+ publishMessage: (channelId: BigString, messageId: BigString) => Promise<CamelizedDiscordMessage>;
1957
1965
  /**
1958
1966
  * Removes a role from a member.
1959
1967
  *
@@ -1991,7 +1999,7 @@ export interface RestManager {
1991
1999
  *
1992
2000
  * @param channelId - The ID of the channel to send the message in.
1993
2001
  * @param options - The parameters for the creation of the message.
1994
- * @returns An instance of the created {@link DiscordMessage}.
2002
+ * @returns An instance of the created {@link CamelizedDiscordMessage}.
1995
2003
  *
1996
2004
  * @remarks
1997
2005
  * Requires that the bot user be able to see the contents of the channel the message is to be sent in.
@@ -2012,7 +2020,7 @@ export interface RestManager {
2012
2020
  *
2013
2021
  * @see {@link https://discord.com/developers/docs/resources/channel#create-message}
2014
2022
  */
2015
- sendMessage: (channelId: BigString, options: CreateMessageOptions) => Promise<Camelize<DiscordMessage>>;
2023
+ sendMessage: (channelId: BigString, options: CreateMessageOptions) => Promise<CamelizedDiscordMessage>;
2016
2024
  /**
2017
2025
  * Sends a follow-up message to an interaction.
2018
2026
  *
@@ -2033,7 +2041,7 @@ export interface RestManager {
2033
2041
  *
2034
2042
  * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-followup-message}
2035
2043
  */
2036
- sendFollowupMessage: (token: string, options: InteractionCallbackData) => Promise<Camelize<DiscordMessage>>;
2044
+ sendFollowupMessage: (token: string, options: InteractionCallbackData) => Promise<CamelizedDiscordMessage>;
2037
2045
  /**
2038
2046
  * Sends a response to an interaction.
2039
2047
  *
@@ -2075,13 +2083,13 @@ export interface RestManager {
2075
2083
  *
2076
2084
  * @see {@link https://discord.com/developers/docs/resources/channel#start-thread-from-message}
2077
2085
  */
2078
- startThreadWithMessage: (channelId: BigString, messageId: BigString, options: StartThreadWithMessage) => Promise<Camelize<DiscordChannel>>;
2086
+ startThreadWithMessage: (channelId: BigString, messageId: BigString, options: StartThreadWithMessage) => Promise<CamelizedDiscordChannel>;
2079
2087
  /**
2080
2088
  * Creates a thread without using a message as the thread's point of origin.
2081
2089
  *
2082
2090
  * @param channelId - The ID of the channel in which to create the thread.
2083
2091
  * @param options - The parameters to use for the creation of the thread.
2084
- * @returns An instance of the created {@link DiscordChannel | Thread}.
2092
+ * @returns An instance of the created {@link CamelizedDiscordChannel | Thread}.
2085
2093
  *
2086
2094
  * @remarks
2087
2095
  * Creating a private thread requires the server to be boosted.
@@ -2090,7 +2098,7 @@ export interface RestManager {
2090
2098
  *
2091
2099
  * @see {@link https://discord.com/developers/docs/resources/channel#start-thread-without-message}
2092
2100
  */
2093
- startThreadWithoutMessage: (channelId: BigString, options: StartThreadWithoutMessage) => Promise<Camelize<DiscordChannel>>;
2101
+ startThreadWithoutMessage: (channelId: BigString, options: StartThreadWithoutMessage) => Promise<CamelizedDiscordChannel>;
2094
2102
  /**
2095
2103
  * Synchronises a template with the current state of a guild.
2096
2104
  *
@@ -2104,7 +2112,7 @@ export interface RestManager {
2104
2112
  *
2105
2113
  * @see {@link https://discord.com/developers/docs/resources/guild-template#get-guild-templates}
2106
2114
  */
2107
- syncGuildTemplate: (guildId: BigString) => Promise<Camelize<DiscordTemplate>>;
2115
+ syncGuildTemplate: (guildId: BigString) => Promise<CamelizedDiscordTemplate>;
2108
2116
  /**
2109
2117
  * Triggers a typing indicator for the bot user.
2110
2118
  *
@@ -2131,7 +2139,7 @@ export interface RestManager {
2131
2139
  *
2132
2140
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands}
2133
2141
  */
2134
- upsertGlobalApplicationCommands: (commands: CreateApplicationCommand[]) => Promise<Camelize<DiscordApplicationCommand[]>>;
2142
+ upsertGlobalApplicationCommands: (commands: CreateApplicationCommand[]) => Promise<CamelizedDiscordApplicationCommand[]>;
2135
2143
  /**
2136
2144
  * Re-registers the list of application commands registered in a guild, overwriting the previous commands completely.
2137
2145
  *
@@ -2146,7 +2154,7 @@ export interface RestManager {
2146
2154
  *
2147
2155
  * @see {@link https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands}
2148
2156
  */
2149
- upsertGuildApplicationCommands: (guildId: BigString, commands: CreateApplicationCommand[]) => Promise<Camelize<DiscordApplicationCommand[]>>;
2157
+ upsertGuildApplicationCommands: (guildId: BigString, commands: CreateApplicationCommand[]) => Promise<CamelizedDiscordApplicationCommand[]>;
2150
2158
  /**
2151
2159
  * Bans a user from a guild.
2152
2160
  *
@@ -2168,14 +2176,14 @@ export interface RestManager {
2168
2176
  *
2169
2177
  * @param guildId - The ID of the guild to edit the nickname of the bot user in.
2170
2178
  * @param options - The parameters for the edit of the nickname.
2171
- * @returns An instance of the edited {@link DiscordMember}
2179
+ * @returns An instance of the edited {@link CamelizedDiscordMember}
2172
2180
  *
2173
2181
  * @remarks
2174
2182
  * Fires a _Guild Member Update_ gateway event.
2175
2183
  *
2176
2184
  * @see {@link https://discord.com/developers/docs/resources/guild#modify-current-member}
2177
2185
  */
2178
- editBotMember: (guildId: BigString, options: EditBotMemberOptions) => Promise<Camelize<DiscordMember>>;
2186
+ editBotMember: (guildId: BigString, options: EditBotMemberOptions) => Promise<CamelizedDiscordMember>;
2179
2187
  /**
2180
2188
  * Edits a member's properties.
2181
2189
  *
@@ -2191,24 +2199,24 @@ export interface RestManager {
2191
2199
  *
2192
2200
  * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-member}
2193
2201
  */
2194
- editMember: (guildId: BigString, userId: BigString, options: ModifyGuildMember) => Promise<Camelize<DiscordMember>>;
2202
+ editMember: (guildId: BigString, userId: BigString, options: ModifyGuildMember) => Promise<CamelizedDiscordMember>;
2195
2203
  /**
2196
2204
  * Gets the member object by user ID.
2197
2205
  *
2198
2206
 
2199
2207
  * @param guildId - The ID of the guild to get the member object for.
2200
2208
  * @param userId - The ID of the user to get the member object for.
2201
- * @returns An instance of {@link DiscordMemberWithUser}.
2209
+ * @returns An instance of {@link CamelizedDiscordMemberWithUser}.
2202
2210
  *
2203
2211
  * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-member}
2204
2212
  */
2205
- getMember: (guildId: BigString, userId: BigString) => Promise<Camelize<DiscordMemberWithUser>>;
2213
+ getMember: (guildId: BigString, userId: BigString) => Promise<CamelizedDiscordMemberWithUser>;
2206
2214
  /**
2207
2215
  * Gets the list of members for a guild.
2208
2216
  *
2209
2217
  * @param guildId - The ID of the guild to get the list of members for.
2210
2218
  * @param options - The parameters for the fetching of the members.
2211
- * @returns A collection of {@link DiscordMemberWithUser} objects assorted by user ID.
2219
+ * @returns A collection of {@link CamelizedDiscordMemberWithUser} objects assorted by user ID.
2212
2220
  *
2213
2221
  * @remarks
2214
2222
  * Requires the `GUILD_MEMBERS` intent.
@@ -2221,7 +2229,7 @@ export interface RestManager {
2221
2229
  * @see {@link https://discord.com/developers/docs/topics/gateway#request-guild-members}
2222
2230
  * @see {@link https://discord.com/developers/docs/topics/rate-limits#rate-limits}
2223
2231
  */
2224
- getMembers: (guildId: BigString, options: ListGuildMembers) => Promise<Camelize<DiscordMemberWithUser[]>>;
2232
+ getMembers: (guildId: BigString, options: ListGuildMembers) => Promise<CamelizedDiscordMemberWithUser[]>;
2225
2233
  /**
2226
2234
  * Kicks a member from a guild.
2227
2235
  *
@@ -2284,11 +2292,11 @@ export interface RestManager {
2284
2292
  * @param guildId - The ID of the guild to search in.
2285
2293
  * @param query - The string to match usernames or nicknames against.
2286
2294
  * @param options - The parameters for searching through the members.
2287
- * @returns A collection of {@link DiscordMember} objects assorted by user ID.
2295
+ * @returns A collection of {@link CamelizedDiscordMember} objects assorted by user ID.
2288
2296
  *
2289
2297
  * @see {@link https://discord.com/developers/docs/resources/guild#search-guild-members}
2290
2298
  */
2291
- searchMembers: (guildId: BigString, query: string, options?: Omit<SearchMembers, 'query'>) => Promise<Camelize<DiscordMemberWithUser[]>>;
2299
+ searchMembers: (guildId: BigString, query: string, options?: Omit<SearchMembers, 'query'>) => Promise<CamelizedDiscordMemberWithUser[]>;
2292
2300
  /**
2293
2301
  * Unbans a user from a guild.
2294
2302
  *
@@ -2323,7 +2331,7 @@ export interface RestManager {
2323
2331
  }
2324
2332
  export type RequestMethods = 'GET' | 'POST' | 'DELETE' | 'PATCH' | 'PUT';
2325
2333
  export type ApiVersions = 9 | 10;
2326
- export interface CreateWebhook extends WithReason {
2334
+ export interface CreateWebhook {
2327
2335
  /** Name of the webhook (1-80 characters) */
2328
2336
  name: string;
2329
2337
  /** Image url for the default webhook avatar */
@@ -2332,13 +2340,15 @@ export interface CreateWebhook extends WithReason {
2332
2340
  export interface CreateRequestBodyOptions {
2333
2341
  headers?: Record<string, string>;
2334
2342
  method: RequestMethods;
2335
- body?: Record<string, unknown>;
2343
+ body?: any;
2336
2344
  unauthorized?: boolean;
2337
2345
  url?: string;
2346
+ reason?: string;
2347
+ attachments?: FileContent[];
2338
2348
  }
2339
2349
  export interface RequestBody {
2340
2350
  headers: Record<string, string>;
2341
- body: string | FormData;
2351
+ body?: string | FormData;
2342
2352
  method: RequestMethods;
2343
2353
  }
2344
2354
  export interface SendRequestOptions {
@@ -2346,8 +2356,6 @@ export interface SendRequestOptions {
2346
2356
  url: string;
2347
2357
  /** The method to use when sending the request. */
2348
2358
  method: RequestMethods;
2349
- /** The body to be sent in the request. */
2350
- body?: Record<string, any>;
2351
2359
  /** The amount of times this request has been retried. */
2352
2360
  retryCount: number;
2353
2361
  /** Handler to retry a request should it be rate limited. */
@@ -2374,7 +2382,7 @@ export interface WebhookMessageEditor {
2374
2382
  * @param token - The webhook token, used to edit the message.
2375
2383
  * @param messageId - The ID of the message to edit.
2376
2384
  * @param options - The parameters for the edit of the message.
2377
- * @returns An instance of the edited {@link DiscordMessage}.
2385
+ * @returns An instance of the edited {@link CamelizedDiscordMessage}.
2378
2386
  *
2379
2387
  * @remarks
2380
2388
  * Fires a _Message Update_ gateway event.
@@ -2383,14 +2391,14 @@ export interface WebhookMessageEditor {
2383
2391
  */
2384
2392
  (webhookId: BigString, token: string, messageId: BigString, options: InteractionCallbackData & {
2385
2393
  threadId?: BigString;
2386
- }): Promise<Camelize<DiscordMessage>>;
2394
+ }): Promise<CamelizedDiscordMessage>;
2387
2395
  /**
2388
2396
  * Edits the original webhook message.
2389
2397
  *
2390
2398
  * @param webhookId - The ID of the webhook to edit the original message of.
2391
2399
  * @param token - The webhook token, used to edit the message.
2392
2400
  * @param options - The parameters for the edit of the message.
2393
- * @returns An instance of the edited {@link DiscordMessage}.
2401
+ * @returns An instance of the edited {@link CamelizedDiscordMessage}.
2394
2402
  *
2395
2403
  * @remarks
2396
2404
  * Fires a _Message Update_ gateway event.
@@ -2399,7 +2407,7 @@ export interface WebhookMessageEditor {
2399
2407
  */
2400
2408
  original: (webhookId: BigString, token: string, options: InteractionCallbackData & {
2401
2409
  threadId?: BigString;
2402
- }) => Promise<Camelize<DiscordMessage>>;
2410
+ }) => Promise<CamelizedDiscordMessage>;
2403
2411
  }
2404
2412
  export interface RestRequestResponse {
2405
2413
  ok: boolean;