snowtransfer 0.7.1 → 0.7.2

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as centra from 'centra';
2
2
  import { EventEmitter } from 'events';
3
3
  import FormData from 'form-data';
4
- import APITypes from 'discord-api-types/v10';
4
+ import { RESTGetAPIAuditLogQuery, RESTGetAPIAuditLogResult, RESTGetAPIAutoModerationRulesResult, RESTGetAPIAutoModerationRuleResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTDeleteAPIAutoModerationRuleResult, RESTGetAPIGatewayResult, RESTGetAPIGatewayBotResult, RESTGetAPIChannelResult, RESTPatchAPIChannelJSONBody, RESTPatchAPIChannelResult, APIThreadChannel, RESTDeleteAPIChannelResult, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelMessageResult, RESTPostAPIChannelMessageJSONBody, RESTPostAPIChannelMessageResult, RESTPostAPIChannelMessageCrosspostResult, RESTPutAPIChannelMessageReactionResult, RESTDeleteAPIChannelMessageUserReactionResult, RESTDeleteAPIChannelMessageReactionResult, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTDeleteAPIChannelAllMessageReactionsResult, RESTPatchAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageResult, RESTDeleteAPIChannelMessageResult, RESTPostAPIChannelMessagesBulkDeleteResult, RESTPutAPIChannelPermissionJSONBody, RESTPutAPIChannelPermissionResult, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelInviteJSONBody, RESTPostAPIChannelInviteResult, RESTDeleteAPIChannelPermissionResult, RESTPostAPIChannelFollowersResult, RESTPostAPIChannelTypingResult, RESTGetAPIChannelPinsResult, RESTPutAPIChannelPinResult, RESTDeleteAPIChannelPinResult, RESTPostAPIChannelMessagesThreadsJSONBody, RESTPostAPIChannelMessagesThreadsResult, RESTPostAPIChannelThreadsJSONBody, APITextBasedChannel, ChannelType, RESTPutAPIChannelThreadMembersResult, RESTDeleteAPIChannelThreadMembersResult, RESTGetAPIChannelThreadMemberResult, RESTGetAPIChannelThreadMembersQuery, RESTGetAPIChannelThreadMembersResult, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelThreadsArchivedPublicResult, RESTGetAPIChannelThreadsArchivedPrivateResult, RESTGetAPIChannelUsersThreadsArchivedResult, RESTGetAPIGuildEmojisResult, RESTGetAPIGuildEmojiResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTDeleteAPIGuildEmojiResult, RESTGetAPIStickerResult, RESTGetAPIGuildStickersResult, RESTGetAPIGuildStickerResult, RESTPostAPIGuildStickerFormDataBody, RESTPostAPIGuildStickerResult, RESTPatchAPIGuildStickerJSONBody, RESTPatchAPIGuildStickerResult, RESTDeleteAPIGuildStickerResult, RESTPostAPIGuildsJSONBody, RESTPostAPIGuildsResult, RESTGetAPIGuildResult, RESTGetAPIGuildPreviewResult, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildResult, RESTDeleteAPIGuildResult, RESTGetAPIGuildChannelsResult, RESTPostAPIGuildChannelJSONBody, RESTPostAPIGuildChannelResult, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildChannelPositionsResult, RESTGetAPIGuildThreadsResult, RESTGetAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTPatchAPIGuildMemberJSONBody, RESTPatchAPIGuildMemberResult, RESTPatchAPICurrentGuildMemberJSONBody, APIGuildMember, RESTPutAPIGuildMemberRoleResult, RESTDeleteAPIGuildMemberRoleResult, RESTDeleteAPIGuildMemberResult, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTGetAPIGuildBanResult, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildBanResult, RESTDeleteAPIGuildBanResult, RESTGetAPIGuildRolesResult, RESTPostAPIGuildRoleJSONBody, RESTPostAPIGuildRoleResult, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRoleResult, RESTDeleteAPIGuildRoleResult, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildIntegrationsResult, RESTDeleteAPIGuildIntegrationResult, RESTGetAPIGuildWidgetSettingsResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTPatchAPIGuildWidgetSettingsResult, APIGuildWidget, RESTGetAPIGuildVanityUrlResult, RESTGetAPIGuildWelcomeScreenResult, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildWelcomeScreenResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPatchAPIGuildVoiceStateCurrentMemberResult, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTPatchAPIGuildVoiceStateUserResult, RESTGetAPIGuildScheduledEventsResult, RESTPostAPIGuildScheduledEventJSONBody, RESTPostAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventResult, RESTPatchAPIGuildScheduledEventJSONBody, RESTPatchAPIGuildScheduledEventResult, RESTDeleteAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPITemplateResult, RESTPostAPITemplateCreateGuildJSONBody, RESTPostAPITemplateCreateGuildResult, RESTGetAPIGuildTemplatesResult, RESTPostAPIGuildTemplatesJSONBody, RESTPostAPIGuildTemplatesResult, RESTPutAPIGuildTemplateSyncResult, RESTPatchAPIGuildTemplateJSONBody, RESTPatchAPIGuildTemplateResult, RESTDeleteAPIGuildTemplateResult, RESTPostAPIChannelWebhookJSONBody, RESTPostAPIChannelWebhookResult, RESTGetAPIChannelWebhooksResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIWebhookResult, RESTPatchAPIWebhookWithTokenJSONBody, RESTPatchAPIWebhookWithTokenResult, RESTPatchAPIWebhookJSONBody, RESTPatchAPIWebhookResult, RESTDeleteAPIWebhookResult, RESTPostAPIWebhookWithTokenJSONBody, RESTPostAPIWebhookWithTokenQuery, RESTPostAPIWebhookWithTokenResult, RESTPostAPIWebhookWithTokenWaitResult, RESTPostAPIWebhookWithTokenSlackQuery, RESTPostAPIWebhookWithTokenSlackResult, RESTPostAPIWebhookWithTokenSlackWaitResult, RESTPostAPIWebhookWithTokenGitHubQuery, RESTPostAPIWebhookWithTokenGitHubResult, RESTPostAPIWebhookWithTokenGitHubWaitResult, RESTGetAPIWebhookWithTokenMessageResult, RESTPatchAPIWebhookWithTokenMessageJSONBody, RESTPatchAPIWebhookWithTokenMessageResult, RESTDeleteAPIWebhookWithTokenMessageResult, RESTGetAPIApplicationCommandsResult, RESTPostAPIApplicationCommandsJSONBody, RESTPostAPIApplicationCommandsResult, RESTGetAPIApplicationCommandResult, RESTPatchAPIApplicationCommandJSONBody, RESTPatchAPIApplicationCommandResult, RESTPutAPIApplicationCommandsJSONBody, RESTPutAPIApplicationCommandsResult, RESTGetAPIApplicationGuildCommandsResult, RESTPostAPIApplicationGuildCommandsJSONBody, RESTPostAPIApplicationGuildCommandsResult, RESTGetAPIApplicationGuildCommandResult, RESTPatchAPIApplicationGuildCommandJSONBody, RESTPatchAPIApplicationGuildCommandResult, RESTPutAPIApplicationGuildCommandsJSONBody, RESTPutAPIApplicationGuildCommandsResult, RESTGetAPIApplicationCommandPermissionsResult, RESTPutAPIApplicationCommandPermissionsJSONBody, RESTPutAPIApplicationCommandPermissionsResult, RESTPostAPIInteractionCallbackJSONBody, RESTGetAPIInteractionOriginalResponseResult, RESTPatchAPIInteractionOriginalResponseJSONBody, RESTPatchAPIInteractionOriginalResponseResult, RESTDeleteAPIInteractionOriginalResponseResult, RESTPostAPIInteractionFollowupJSONBody, RESTPostAPIInteractionFollowupResult, RESTGetAPIInteractionFollowupResult, RESTPatchAPIInteractionFollowupJSONBody, RESTPatchAPIInteractionFollowupResult, RESTDeleteAPIInteractionFollowupResult, RESTGetAPIInviteQuery, RESTGetAPIInviteResult, RESTDeleteAPIInviteResult, RESTPostAPIStageInstanceJSONBody, RESTPostAPIStageInstanceResult, RESTGetAPIStageInstanceResult, RESTPatchAPIStageInstanceJSONBody, RESTPatchAPIStageInstanceResult, RESTDeleteAPIStageInstanceResult, RESTGetAPICurrentUserResult, RESTGetAPIUserResult, RESTPatchAPICurrentUserJSONBody, RESTPatchAPICurrentUserResult, RESTGetAPICurrentUserGuildsQuery, RESTGetAPICurrentUserGuildsResult, RESTDeleteAPICurrentUserGuildResult, RESTPostAPICurrentUserCreateDMChannelResult, RESTGetAPICurrentUserConnectionsResult, RESTGetAPICurrentUserApplicationRoleConnectionResult, RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, RESTPutAPICurrentUserApplicationRoleConnectionResult, RESTGetAPIVoiceRegionsResult } from 'discord-api-types/v10';
5
5
 
6
6
  type HTTPMethod = "get" | "post" | "patch" | "head" | "put" | "delete" | "connect" | "options" | "trace";
7
7
  declare class DiscordAPIError extends Error {
@@ -263,7 +263,7 @@ declare class AuditLogMethods {
263
263
  * }
264
264
  * const channel = await client.auditLog.getAuditLog("guild id", data)
265
265
  */
266
- getAuditLog(guildId: string, data?: APITypes.RESTGetAPIAuditLogQuery): Promise<APITypes.RESTGetAPIAuditLogResult>;
266
+ getAuditLog(guildId: string, data?: RESTGetAPIAuditLogQuery): Promise<RESTGetAPIAuditLogResult>;
267
267
  }
268
268
 
269
269
  /**
@@ -294,7 +294,7 @@ declare class AutoModerationMethods {
294
294
  * const client = new SnowTransfer("TOKEN")
295
295
  * const rules = await client.autoMod.getAutoModerationRules("guild id")
296
296
  */
297
- getAutoModerationRules(guildId: string): Promise<APITypes.RESTGetAPIAutoModerationRulesResult>;
297
+ getAutoModerationRules(guildId: string): Promise<RESTGetAPIAutoModerationRulesResult>;
298
298
  /**
299
299
  * Get a auto moderation rules from a guild
300
300
  * @param guildId id of the guild
@@ -310,7 +310,7 @@ declare class AutoModerationMethods {
310
310
  * const client = new SnowTransfer("TOKEN")
311
311
  * const rule = await client.autoMod.getAutoModerationRule("guild id", "rule id")
312
312
  */
313
- getAutoModerationRule(guildId: string, ruleId: string): Promise<APITypes.RESTGetAPIAutoModerationRuleResult>;
313
+ getAutoModerationRule(guildId: string, ruleId: string): Promise<RESTGetAPIAutoModerationRuleResult>;
314
314
  /**
315
315
  * Create an auto moderation rule for a guild
316
316
  * @param guildId id of the guild
@@ -338,9 +338,9 @@ declare class AutoModerationMethods {
338
338
  * }
339
339
  * const newRule = await client.autoMod.createAutoModerationRule("guild id", data)
340
340
  */
341
- createAutoModerationRule(guildId: string, data: APITypes.RESTPostAPIAutoModerationRuleJSONBody & {
341
+ createAutoModerationRule(guildId: string, data: RESTPostAPIAutoModerationRuleJSONBody & {
342
342
  reason?: string;
343
- }): Promise<APITypes.RESTPostAPIAutoModerationRuleResult>;
343
+ }): Promise<RESTPostAPIAutoModerationRuleResult>;
344
344
  /**
345
345
  * Edit an auto moderation rule for a guild
346
346
  * @param guildId id of the guild
@@ -362,9 +362,9 @@ declare class AutoModerationMethods {
362
362
  * }
363
363
  * const updatedRule = await client.autoMod.editAutoModerationRule("guild id", "rule id", data)
364
364
  */
365
- editAutoModerationRule(guildId: string, ruleId: string, data: APITypes.RESTPatchAPIAutoModerationRuleJSONBody & {
365
+ editAutoModerationRule(guildId: string, ruleId: string, data: RESTPatchAPIAutoModerationRuleJSONBody & {
366
366
  reason?: string;
367
- }): Promise<APITypes.RESTPatchAPIAutoModerationRuleResult>;
367
+ }): Promise<RESTPatchAPIAutoModerationRuleResult>;
368
368
  /**
369
369
  * Deletes an auto moderation rule for a guild
370
370
  * @param guildId id of the guild
@@ -380,7 +380,7 @@ declare class AutoModerationMethods {
380
380
  * const client = new SnowTransfer("TOKEN")
381
381
  * client.autoMod.deleteAutoModerationRules("guild id", "rule id", "was useless")
382
382
  */
383
- deleteAutoModerationRule(guildId: string, ruleId: string, reason?: string): Promise<APITypes.RESTDeleteAPIAutoModerationRuleResult>;
383
+ deleteAutoModerationRule(guildId: string, ruleId: string, reason?: string): Promise<RESTDeleteAPIAutoModerationRuleResult>;
384
384
  }
385
385
 
386
386
  /**
@@ -406,7 +406,7 @@ declare class BotMethods {
406
406
  * const result = await client.bot.getGateway()
407
407
  * // result should be something like { url: "wss://gateway.discord.gg" }
408
408
  */
409
- getGateway(): Promise<APITypes.RESTGetAPIGatewayResult>;
409
+ getGateway(): Promise<RESTGetAPIGatewayResult>;
410
410
  /**
411
411
  * Get the gateway url to connect to and a recommended amount of shards to use
412
412
  * @returns [Gateway data](https://discord.com/developers/docs/topics/gateway#get-gateway-example-response)
@@ -416,7 +416,7 @@ declare class BotMethods {
416
416
  * const result = await client.bot.getGatewayBot()
417
417
  * // result should be something like { url: "wss://gateway.discord.gg", shards: 1, session_start_limit: { total: 1000, remaining: 999, reset_after: 14400000, max_concurrency: 1 } }
418
418
  */
419
- getGatewayBot(): Promise<APITypes.RESTGetAPIGatewayBotResult>;
419
+ getGatewayBot(): Promise<RESTGetAPIGatewayBotResult>;
420
420
  }
421
421
 
422
422
  /**
@@ -444,7 +444,7 @@ declare class ChannelMethods {
444
444
  * const client = new SnowTransfer("TOKEN")
445
445
  * const channel = await client.channel.getChannel("channel id")
446
446
  */
447
- getChannel(channelId: string): Promise<APITypes.RESTGetAPIChannelResult>;
447
+ getChannel(channelId: string): Promise<RESTGetAPIChannelResult>;
448
448
  /**
449
449
  * Update a guild channel or thread
450
450
  * @param channelId Id of the guild channel
@@ -467,12 +467,12 @@ declare class ChannelMethods {
467
467
  * }
468
468
  * client.channel.updateChannel("channel id", updateData)
469
469
  */
470
- updateChannel(channelId: string, data: Omit<APITypes.RESTPatchAPIChannelJSONBody, "archived" | "auto_archive_duration" | "locked" | "invitable"> & {
470
+ updateChannel(channelId: string, data: Omit<RESTPatchAPIChannelJSONBody, "archived" | "auto_archive_duration" | "locked" | "invitable"> & {
471
471
  reason?: string;
472
- }): Promise<Exclude<APITypes.RESTPatchAPIChannelResult, APITypes.APIThreadChannel>>;
473
- updateChannel(channelId: string, data: Pick<APITypes.RESTPatchAPIChannelJSONBody, "archived" | "auto_archive_duration" | "locked" | "name" | "rate_limit_per_user"> & {
472
+ }): Promise<Exclude<RESTPatchAPIChannelResult, APIThreadChannel>>;
473
+ updateChannel(channelId: string, data: Pick<RESTPatchAPIChannelJSONBody, "archived" | "auto_archive_duration" | "locked" | "name" | "rate_limit_per_user"> & {
474
474
  reason?: string;
475
- }): Promise<Extract<APITypes.RESTPatchAPIChannelResult, APITypes.APIThreadChannel>>;
475
+ }): Promise<Extract<RESTPatchAPIChannelResult, APIThreadChannel>>;
476
476
  /**
477
477
  * Delete a channel or thread via Id
478
478
  *
@@ -497,7 +497,7 @@ declare class ChannelMethods {
497
497
  * const client = new SnowTransfer("TOKEN")
498
498
  * client.channel.deleteChannel("channel id", "No longer needed")
499
499
  */
500
- deleteChannel(channelId: string, reason?: string): Promise<APITypes.RESTDeleteAPIChannelResult>;
500
+ deleteChannel(channelId: string, reason?: string): Promise<RESTDeleteAPIChannelResult>;
501
501
  /**
502
502
  * Get a list of messages from a channel
503
503
  * @param channelId Id of the channel
@@ -516,7 +516,7 @@ declare class ChannelMethods {
516
516
  * }
517
517
  * const messages = await client.channel.getChannelMessages("channel id", options)
518
518
  */
519
- getChannelMessages(channelId: string, options?: APITypes.RESTGetAPIChannelMessagesQuery): Promise<APITypes.RESTGetAPIChannelMessagesResult>;
519
+ getChannelMessages(channelId: string, options?: RESTGetAPIChannelMessagesQuery): Promise<RESTGetAPIChannelMessagesResult>;
520
520
  /**
521
521
  * Get a single message via Id
522
522
  * @param channelId Id of the channel
@@ -533,7 +533,7 @@ declare class ChannelMethods {
533
533
  * const client = new SnowTransfer("TOKEN")
534
534
  * const message = await client.channel.getChannelMessage("channel id", "message id")
535
535
  */
536
- getChannelMessage(channelId: string, messageId: string): Promise<APITypes.RESTGetAPIChannelMessageResult>;
536
+ getChannelMessage(channelId: string, messageId: string): Promise<RESTGetAPIChannelMessageResult>;
537
537
  /**
538
538
  * Creates a new Message within a channel or thread
539
539
  *
@@ -576,14 +576,14 @@ declare class ChannelMethods {
576
576
  * const fileData = fs.readFileSync("nice_picture.png") // You should probably use fs.readFile, since it is asynchronous, synchronous methods block the thread.
577
577
  * client.channel.createMessage("channel id", { content: "This is a nice picture", files: [{ name: "Optional_Filename.png", file: fileData }] })
578
578
  */
579
- createMessage(channelId: string, data: string | APITypes.RESTPostAPIChannelMessageJSONBody & {
579
+ createMessage(channelId: string, data: string | RESTPostAPIChannelMessageJSONBody & {
580
580
  files?: Array<{
581
581
  name: string;
582
582
  file: Buffer;
583
583
  }>;
584
584
  }, options?: {
585
585
  disableEveryone?: boolean;
586
- }): Promise<APITypes.RESTPostAPIChannelMessageResult>;
586
+ }): Promise<RESTPostAPIChannelMessageResult>;
587
587
  /**
588
588
  * Crosspost a message in a news channel to all following channels
589
589
  * @param channelId Id of the news channel
@@ -601,7 +601,7 @@ declare class ChannelMethods {
601
601
  * const client = new SnowTransfer("TOKEN")
602
602
  * client.channel.crosspostMessage("channel id", "message id")
603
603
  */
604
- crosspostMessage(channelId: string, messageId: string): Promise<APITypes.RESTPostAPIChannelMessageCrosspostResult>;
604
+ crosspostMessage(channelId: string, messageId: string): Promise<RESTPostAPIChannelMessageCrosspostResult>;
605
605
  /**
606
606
  * Adds a reaction to a message
607
607
  * @param channelId Id of the channel
@@ -627,7 +627,7 @@ declare class ChannelMethods {
627
627
  * const client = new SnowTransfer("TOKEN")
628
628
  * client.channel.createReaction("channel Id", "message Id", encodeURIComponent("😀"))
629
629
  */
630
- createReaction(channelId: string, messageId: string, emoji: string): Promise<APITypes.RESTPutAPIChannelMessageReactionResult>;
630
+ createReaction(channelId: string, messageId: string, emoji: string): Promise<RESTPutAPIChannelMessageReactionResult>;
631
631
  /**
632
632
  * Delete a reaction added by the current user from a message
633
633
  * @param channelId Id of the channel
@@ -650,7 +650,7 @@ declare class ChannelMethods {
650
650
  * const client = new SnowTransfer("TOKEN")
651
651
  * client.channel.deleteReactionSelf("channel Id", "message Id", encodeURIComponent("😀"))
652
652
  */
653
- deleteReactionSelf(channelId: string, messageId: string, emoji: string): Promise<APITypes.RESTDeleteAPIChannelMessageUserReactionResult>;
653
+ deleteReactionSelf(channelId: string, messageId: string, emoji: string): Promise<RESTDeleteAPIChannelMessageUserReactionResult>;
654
654
  /**
655
655
  * Delete a reaction from a message in a guild channel
656
656
  * @param channelId Id of the guild channel
@@ -676,8 +676,8 @@ declare class ChannelMethods {
676
676
  * // If a user Id is not supplied, the emoji from that message will be removed for all users
677
677
  * client.channel.deleteReaction("channel Id", "message Id", encodeURIComponent("😀"))
678
678
  */
679
- deleteReaction(channelId: string, messageId: string, emoji: string): Promise<APITypes.RESTDeleteAPIChannelMessageReactionResult>;
680
- deleteReaction(channelId: string, messageId: string, emoji: string, userId: string): Promise<APITypes.RESTDeleteAPIChannelMessageUserReactionResult>;
679
+ deleteReaction(channelId: string, messageId: string, emoji: string): Promise<RESTDeleteAPIChannelMessageReactionResult>;
680
+ deleteReaction(channelId: string, messageId: string, emoji: string, userId: string): Promise<RESTDeleteAPIChannelMessageUserReactionResult>;
681
681
  /**
682
682
  * Get a list of users that reacted with a certain emoji on a certain message
683
683
  * @param channelId Id of the channel
@@ -696,7 +696,7 @@ declare class ChannelMethods {
696
696
  * const client = new SnowTransfer("TOKEN")
697
697
  * const reactions = await client.channel.getReactions("channel Id", "message Id", encodeURIComponent("awooo:322522663304036352"))
698
698
  */
699
- getReactions(channelId: string, messageId: string, emoji: string, query?: APITypes.RESTGetAPIChannelMessageReactionUsersQuery): Promise<APITypes.RESTGetAPIChannelMessageReactionUsersResult>;
699
+ getReactions(channelId: string, messageId: string, emoji: string, query?: RESTGetAPIChannelMessageReactionUsersQuery): Promise<RESTGetAPIChannelMessageReactionUsersResult>;
700
700
  /**
701
701
  * Delete all reactions from a message in a guild channel
702
702
  * @param channelId Id of the guild channel
@@ -713,7 +713,7 @@ declare class ChannelMethods {
713
713
  * const client = new SnowTransfer("TOKEN")
714
714
  * client.channel.deleteAllReactions("channel Id", "message Id")
715
715
  */
716
- deleteAllReactions(channelId: string, messageId: string): Promise<APITypes.RESTDeleteAPIChannelAllMessageReactionsResult>;
716
+ deleteAllReactions(channelId: string, messageId: string): Promise<RESTDeleteAPIChannelAllMessageReactionsResult>;
717
717
  /**
718
718
  * Edit a message sent by the current user or edit the message flags of another user's message
719
719
  * @param channelId Id of the channel
@@ -733,14 +733,14 @@ declare class ChannelMethods {
733
733
  * const message = await client.channel.createMessage("channel id", "pong")
734
734
  * client.channel.editMessage("channel id", message.id, `pong ${Date.now() - time}ms`)
735
735
  */
736
- editMessage(channelId: string, messageId: string, data: string | APITypes.RESTPatchAPIChannelMessageJSONBody & {
736
+ editMessage(channelId: string, messageId: string, data: string | RESTPatchAPIChannelMessageJSONBody & {
737
737
  files?: Array<{
738
738
  name: string;
739
739
  file: Buffer;
740
740
  }>;
741
741
  }, options?: {
742
742
  disableEveryone?: boolean;
743
- }): Promise<APITypes.RESTPatchAPIChannelMessageResult>;
743
+ }): Promise<RESTPatchAPIChannelMessageResult>;
744
744
  /**
745
745
  * Delete a message
746
746
  * @param channelId Id of the channel
@@ -758,7 +758,7 @@ declare class ChannelMethods {
758
758
  * const client = new SnowTransfer("TOKEN")
759
759
  * client.channel.deleteMessage("channel id", "message id")
760
760
  */
761
- deleteMessage(channelId: string, messageId: string, reason?: string): Promise<APITypes.RESTDeleteAPIChannelMessageResult>;
761
+ deleteMessage(channelId: string, messageId: string, reason?: string): Promise<RESTDeleteAPIChannelMessageResult>;
762
762
  /**
763
763
  * Bulk delete messages from a guild channel, messages may not be older than 2 weeks
764
764
  * @param channelId Id of the guild channel
@@ -776,7 +776,7 @@ declare class ChannelMethods {
776
776
  * const client = new SnowTransfer("TOKEN")
777
777
  * client.channel.bulkDeleteMessages("channel id", ["message id 1", "message id 2"], "spam")
778
778
  */
779
- bulkDeleteMessages(channelId: string, messages: Array<string>, reason?: string): Promise<APITypes.RESTPostAPIChannelMessagesBulkDeleteResult>;
779
+ bulkDeleteMessages(channelId: string, messages: Array<string>, reason?: string): Promise<RESTPostAPIChannelMessagesBulkDeleteResult>;
780
780
  /**
781
781
  * Modify the permission overwrites of a guild channel
782
782
  * @param channelId Id of the guild channel
@@ -796,9 +796,9 @@ declare class ChannelMethods {
796
796
  * const client = new SnowTransfer("TOKEN")
797
797
  * client.channel.editChannelPermission("channel id", "user id", { allow: String(1 << 10), type: 1 })
798
798
  */
799
- editChannelPermission(channelId: string, permissionId: string, data: APITypes.RESTPutAPIChannelPermissionJSONBody & {
799
+ editChannelPermission(channelId: string, permissionId: string, data: RESTPutAPIChannelPermissionJSONBody & {
800
800
  reason?: string;
801
- }): Promise<APITypes.RESTPutAPIChannelPermissionResult>;
801
+ }): Promise<RESTPutAPIChannelPermissionResult>;
802
802
  /**
803
803
  * Get a list of invites for a guild channel
804
804
  * @param channelId Id of the guild channel
@@ -813,7 +813,7 @@ declare class ChannelMethods {
813
813
  * const client = new SnowTransfer("TOKEN")
814
814
  * const invites = await client.channel.getChannelInvites("channel id")
815
815
  */
816
- getChannelInvites(channelId: string): Promise<APITypes.RESTGetAPIChannelInvitesResult>;
816
+ getChannelInvites(channelId: string): Promise<RESTGetAPIChannelInvitesResult>;
817
817
  /**
818
818
  * Create an invite for a guild channel
819
819
  *
@@ -832,9 +832,9 @@ declare class ChannelMethods {
832
832
  * const client = new SnowTransfer("TOKEN")
833
833
  * const invite = await client.channel.createChannelInvite("channel id", { max_age: 0, max_uses: 0, unique: true })
834
834
  */
835
- createChannelInvite(channelId: string, data?: APITypes.RESTPostAPIChannelInviteJSONBody & {
835
+ createChannelInvite(channelId: string, data?: RESTPostAPIChannelInviteJSONBody & {
836
836
  reason?: string;
837
- }): Promise<APITypes.RESTPostAPIChannelInviteResult>;
837
+ }): Promise<RESTPostAPIChannelInviteResult>;
838
838
  /**
839
839
  * Delete a permission overwrite from a guild channel
840
840
  * @param channelId Id of the guild channel
@@ -854,7 +854,7 @@ declare class ChannelMethods {
854
854
  * const client = new SnowTransfer("TOKEN")
855
855
  * client.channel.deleteChannelPermission("channel id", "user id", "Abusing channel")
856
856
  */
857
- deleteChannelPermission(channelId: string, permissionId: string, reason?: string): Promise<APITypes.RESTDeleteAPIChannelPermissionResult>;
857
+ deleteChannelPermission(channelId: string, permissionId: string, reason?: string): Promise<RESTDeleteAPIChannelPermissionResult>;
858
858
  /**
859
859
  * Follow a news channel to another channel
860
860
  * @param channelId The Id of the news channel
@@ -870,7 +870,7 @@ declare class ChannelMethods {
870
870
  * const client = new SnowTransfer("TOKEN")
871
871
  * client.channel.followAnnouncementChannel("news channel id", "text channel id")
872
872
  */
873
- followAnnouncementChannel(channelId: string, webhookChannelId: string): Promise<APITypes.RESTPostAPIChannelFollowersResult>;
873
+ followAnnouncementChannel(channelId: string, webhookChannelId: string): Promise<RESTPostAPIChannelFollowersResult>;
874
874
  /**
875
875
  * Send an indicator that the current user is typing within a channel.
876
876
  *
@@ -888,7 +888,7 @@ declare class ChannelMethods {
888
888
  * const client = new SnowTransfer("TOKEN")
889
889
  * client.channel.sendChannelTyping("channel id")
890
890
  */
891
- startChannelTyping(channelId: string): Promise<APITypes.RESTPostAPIChannelTypingResult>;
891
+ startChannelTyping(channelId: string): Promise<RESTPostAPIChannelTypingResult>;
892
892
  /**
893
893
  * Get a list of pinned messages for a channel
894
894
  * @param channelId Id of the channel
@@ -903,7 +903,7 @@ declare class ChannelMethods {
903
903
  * const client = new SnowTransfer("TOKEN")
904
904
  * const messages = await client.channel.getPinnedMessages("channel id")
905
905
  */
906
- getChannelPinnedMessages(channelId: string): Promise<APITypes.RESTGetAPIChannelPinsResult>;
906
+ getChannelPinnedMessages(channelId: string): Promise<RESTGetAPIChannelPinsResult>;
907
907
  /**
908
908
  * Pin a message within a channel
909
909
  * @param channelId Id of the channel
@@ -922,7 +922,7 @@ declare class ChannelMethods {
922
922
  * const client = new SnowTransfer("TOKEN")
923
923
  * client.channel.addChannelPinnedMessage("channel id", "message id", "Good meme")
924
924
  */
925
- addChannelPinnedMessage(channelId: string, messageId: string, reason?: string): Promise<APITypes.RESTPutAPIChannelPinResult>;
925
+ addChannelPinnedMessage(channelId: string, messageId: string, reason?: string): Promise<RESTPutAPIChannelPinResult>;
926
926
  /**
927
927
  * Remove a pinned message from a channel
928
928
  * @param channelId Id of the channel
@@ -941,7 +941,7 @@ declare class ChannelMethods {
941
941
  * const client = new SnowTransfer("TOKEN")
942
942
  * client.channel.removeChannelPinnedMessage("channel id", "message id", "Mod abuse")
943
943
  */
944
- removeChannelPinnedMessage(channelId: string, messageId: string, reason?: string): Promise<APITypes.RESTDeleteAPIChannelPinResult>;
944
+ removeChannelPinnedMessage(channelId: string, messageId: string, reason?: string): Promise<RESTDeleteAPIChannelPinResult>;
945
945
  /**
946
946
  * Creates a public thread off a message in a guild channel
947
947
  * @param channelId Id of the guild channel
@@ -959,9 +959,9 @@ declare class ChannelMethods {
959
959
  * const client = new SnowTransfer("TOKEN")
960
960
  * const thread = await client.channel.createThreadWithMessage("channel id", "message id", { name: "cool-art", reason: "I wanna talk about it!" })
961
961
  */
962
- createThreadWithMessage(channelId: string, messageId: string, options: APITypes.RESTPostAPIChannelMessagesThreadsJSONBody & {
962
+ createThreadWithMessage(channelId: string, messageId: string, options: RESTPostAPIChannelMessagesThreadsJSONBody & {
963
963
  reason?: string;
964
- }): Promise<APITypes.RESTPostAPIChannelMessagesThreadsResult>;
964
+ }): Promise<RESTPostAPIChannelMessagesThreadsResult>;
965
965
  /**
966
966
  * Creates a thread under a guild channel without a message
967
967
  * @param channelId Id of the guild channel
@@ -979,18 +979,18 @@ declare class ChannelMethods {
979
979
  * const client = new SnowTransfer("TOKEN")
980
980
  * const thread = await client.channel.createThreadWithoutMessage("channel id", { name: "persons-birthday", type: 12, invitable: true, reason: "Shh! It's a surprise" })
981
981
  */
982
- createThreadWithoutMessage(channelId: string, options: APITypes.RESTPostAPIChannelThreadsJSONBody & {
982
+ createThreadWithoutMessage(channelId: string, options: RESTPostAPIChannelThreadsJSONBody & {
983
983
  type: 10;
984
984
  reason?: string;
985
- }): Promise<APITypes.APITextBasedChannel<APITypes.ChannelType.AnnouncementThread>>;
986
- createThreadWithoutMessage(channelId: string, options: APITypes.RESTPostAPIChannelThreadsJSONBody & {
985
+ }): Promise<APITextBasedChannel<ChannelType.AnnouncementThread>>;
986
+ createThreadWithoutMessage(channelId: string, options: RESTPostAPIChannelThreadsJSONBody & {
987
987
  type: 11;
988
988
  reason?: string;
989
- }): Promise<APITypes.APITextBasedChannel<APITypes.ChannelType.PublicThread>>;
990
- createThreadWithoutMessage(channelId: string, options: APITypes.RESTPostAPIChannelThreadsJSONBody & {
989
+ }): Promise<APITextBasedChannel<ChannelType.PublicThread>>;
990
+ createThreadWithoutMessage(channelId: string, options: RESTPostAPIChannelThreadsJSONBody & {
991
991
  type: 12;
992
992
  reason?: string;
993
- }): Promise<APITypes.APITextBasedChannel<APITypes.ChannelType.PrivateThread>>;
993
+ }): Promise<APITextBasedChannel<ChannelType.PrivateThread>>;
994
994
  /**
995
995
  * Join a thread
996
996
  * @param threadId Id of the thread
@@ -1004,7 +1004,7 @@ declare class ChannelMethods {
1004
1004
  * const client = new SnowTransfer("TOKEN")
1005
1005
  * client.channel.joinThread("thread id")
1006
1006
  */
1007
- joinThread(threadId: string): Promise<APITypes.RESTPutAPIChannelThreadMembersResult>;
1007
+ joinThread(threadId: string): Promise<RESTPutAPIChannelThreadMembersResult>;
1008
1008
  /**
1009
1009
  * Add a user to a thread
1010
1010
  *
@@ -1022,7 +1022,7 @@ declare class ChannelMethods {
1022
1022
  * const client = new SnowTransfer("TOKEN")
1023
1023
  * client.channel.addThreadMember("thread id", "user id")
1024
1024
  */
1025
- addThreadMember(threadId: string, userId: string): Promise<APITypes.RESTPutAPIChannelThreadMembersResult>;
1025
+ addThreadMember(threadId: string, userId: string): Promise<RESTPutAPIChannelThreadMembersResult>;
1026
1026
  /**
1027
1027
  * Leave a thread
1028
1028
  * @param threadId Id of the thread
@@ -1032,7 +1032,7 @@ declare class ChannelMethods {
1032
1032
  * const client = new SnowTransfer("TOKEN")
1033
1033
  * client.channel.leaveThread("thread id")
1034
1034
  */
1035
- leaveThread(threadId: string): Promise<APITypes.RESTDeleteAPIChannelThreadMembersResult>;
1035
+ leaveThread(threadId: string): Promise<RESTDeleteAPIChannelThreadMembersResult>;
1036
1036
  /**
1037
1037
  * Remove a user from a thread
1038
1038
  * @param threadId Id of the thread
@@ -1047,7 +1047,7 @@ declare class ChannelMethods {
1047
1047
  * const client = new SnowTransfer("TOKEN")
1048
1048
  * client.channel.removeThreadMember("thread id", "user id")
1049
1049
  */
1050
- removeThreadMember(threadId: string, userId: string): Promise<APITypes.RESTDeleteAPIChannelThreadMembersResult>;
1050
+ removeThreadMember(threadId: string, userId: string): Promise<RESTDeleteAPIChannelThreadMembersResult>;
1051
1051
  /**
1052
1052
  * Gets a member of a thread
1053
1053
  * @param threadId Id of the thread
@@ -1063,7 +1063,7 @@ declare class ChannelMethods {
1063
1063
  * const client = new SnowTransfer("TOKEN")
1064
1064
  * const member = await client.channel.getThreadMember("thread id", "user id")
1065
1065
  */
1066
- getThreadMember(threadId: string, userId: string, withMember?: boolean): Promise<APITypes.RESTGetAPIChannelThreadMemberResult>;
1066
+ getThreadMember(threadId: string, userId: string, withMember?: boolean): Promise<RESTGetAPIChannelThreadMemberResult>;
1067
1067
  /**
1068
1068
  * Gets all members within a thread
1069
1069
  * @param channelId Id of the Thread
@@ -1081,7 +1081,7 @@ declare class ChannelMethods {
1081
1081
  * const client = new SnowTransfer("TOKEN")
1082
1082
  * const members = await client.channel.getThreadMembers("thread id")
1083
1083
  */
1084
- getThreadMembers(channelId: string, query?: APITypes.RESTGetAPIChannelThreadMembersQuery): Promise<APITypes.RESTGetAPIChannelThreadMembersResult>;
1084
+ getThreadMembers(channelId: string, query?: RESTGetAPIChannelThreadMembersQuery): Promise<RESTGetAPIChannelThreadMembersResult>;
1085
1085
  /**
1086
1086
  * Gets all threads that are public and archived within a guild channel
1087
1087
  * @param channelId Id of the guild channel
@@ -1096,7 +1096,7 @@ declare class ChannelMethods {
1096
1096
  * const client = new SnowTransfer("TOKEN")
1097
1097
  * const result = await client.channel.getChannelArchivedPublicThreads("channel id")
1098
1098
  */
1099
- getChannelArchivedPublicThreads(channelId: string, query?: APITypes.RESTGetAPIChannelThreadsArchivedQuery): Promise<APITypes.RESTGetAPIChannelThreadsArchivedPublicResult>;
1099
+ getChannelArchivedPublicThreads(channelId: string, query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<RESTGetAPIChannelThreadsArchivedPublicResult>;
1100
1100
  /**
1101
1101
  * Gets all threads that are private and archived within a guild channel
1102
1102
  *
@@ -1114,7 +1114,7 @@ declare class ChannelMethods {
1114
1114
  * const client = new SnowTransfer("TOKEN")
1115
1115
  * const result = await client.channel.getChannelArchivedPrivateThreads("channel id")
1116
1116
  */
1117
- getChannelArchivedPrivateThreads(channelId: string, query?: APITypes.RESTGetAPIChannelThreadsArchivedQuery): Promise<APITypes.RESTGetAPIChannelThreadsArchivedPrivateResult>;
1117
+ getChannelArchivedPrivateThreads(channelId: string, query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<RESTGetAPIChannelThreadsArchivedPrivateResult>;
1118
1118
  /**
1119
1119
  * Gets all threads that are private and archived within a guild channel that the CurrentUser is apart of
1120
1120
  *
@@ -1130,7 +1130,7 @@ declare class ChannelMethods {
1130
1130
  * const client = new SnowTransfer("TOKEN")
1131
1131
  * const result = await client.channel.getChannelArchivedPrivateThreadsUser("channel id")
1132
1132
  */
1133
- getChannelArchivedPrivateThreadsUser(channelId: string, query?: APITypes.RESTGetAPIChannelThreadsArchivedQuery): Promise<APITypes.RESTGetAPIChannelUsersThreadsArchivedResult>;
1133
+ getChannelArchivedPrivateThreadsUser(channelId: string, query?: RESTGetAPIChannelThreadsArchivedQuery): Promise<RESTGetAPIChannelUsersThreadsArchivedResult>;
1134
1134
  }
1135
1135
 
1136
1136
  /**
@@ -1156,7 +1156,7 @@ declare class GuildAssetsMethods {
1156
1156
  * const client = new SnowTransfer("TOKEN")
1157
1157
  * const emojis = await client.guildAssets.getEmojis("guild id")
1158
1158
  */
1159
- getEmojis(guildId: string): Promise<APITypes.RESTGetAPIGuildEmojisResult>;
1159
+ getEmojis(guildId: string): Promise<RESTGetAPIGuildEmojisResult>;
1160
1160
  /**
1161
1161
  * Get an emoji via guildId + emojiId
1162
1162
  * @param guildId Id of the guild
@@ -1167,7 +1167,7 @@ declare class GuildAssetsMethods {
1167
1167
  * const client = new SnowTransfer("TOKEN")
1168
1168
  * const emoji = await client.guildAssets.getEmoji("guild id", "emoji id")
1169
1169
  */
1170
- getEmoji(guildId: string, emojiId: string): Promise<APITypes.RESTGetAPIGuildEmojiResult>;
1170
+ getEmoji(guildId: string, emojiId: string): Promise<RESTGetAPIGuildEmojiResult>;
1171
1171
  /**
1172
1172
  * Create a new Emoji
1173
1173
  * @param guildId Id of the guild
@@ -1188,9 +1188,9 @@ declare class GuildAssetsMethods {
1188
1188
  * \}
1189
1189
  * client.guildAssets.createEmoji("guild id", emojiData)
1190
1190
  */
1191
- createEmoji(guildId: string, data: APITypes.RESTPostAPIGuildEmojiJSONBody & {
1191
+ createEmoji(guildId: string, data: RESTPostAPIGuildEmojiJSONBody & {
1192
1192
  reason?: string;
1193
- }): Promise<APITypes.RESTPostAPIGuildEmojiResult>;
1193
+ }): Promise<RESTPostAPIGuildEmojiResult>;
1194
1194
  /**
1195
1195
  * Update an existing emoji
1196
1196
  * @param {string} guildId Id of the guild
@@ -1210,9 +1210,9 @@ declare class GuildAssetsMethods {
1210
1210
  * }
1211
1211
  * client.guildAssets.updateEmoji("guild id", "emoji id", emojiData)
1212
1212
  */
1213
- updateEmoji(guildId: string, emojiId: string, data: APITypes.RESTPatchAPIGuildEmojiJSONBody & {
1213
+ updateEmoji(guildId: string, emojiId: string, data: RESTPatchAPIGuildEmojiJSONBody & {
1214
1214
  reason?: string;
1215
- }): Promise<APITypes.RESTPatchAPIGuildEmojiResult>;
1215
+ }): Promise<RESTPatchAPIGuildEmojiResult>;
1216
1216
  /**
1217
1217
  * Delete an emoji
1218
1218
  * @param guildId Id of the guild
@@ -1229,7 +1229,7 @@ declare class GuildAssetsMethods {
1229
1229
  * const client = new SnowTransfer("TOKEN")
1230
1230
  * client.guildAssets.deleteEmoji("guild id", "emoji id", "wasn't nice")
1231
1231
  */
1232
- deleteEmoji(guildId: string, emojiId: string, reason?: string): Promise<APITypes.RESTDeleteAPIGuildEmojiResult>;
1232
+ deleteEmoji(guildId: string, emojiId: string, reason?: string): Promise<RESTDeleteAPIGuildEmojiResult>;
1233
1233
  /**
1234
1234
  * Get a global sticker
1235
1235
  * @param stickerId Id of the sticker
@@ -1239,7 +1239,7 @@ declare class GuildAssetsMethods {
1239
1239
  * const client = new SnowTransfer("TOKEN")
1240
1240
  * const sticker = await client.guildAssets.getSticker("sticker id")
1241
1241
  */
1242
- getSticker(stickerId: string): Promise<APITypes.RESTGetAPIStickerResult>;
1242
+ getSticker(stickerId: string): Promise<RESTGetAPIStickerResult>;
1243
1243
  /**
1244
1244
  * Get all guild stickers
1245
1245
  * @param guildId Id of the guild
@@ -1253,7 +1253,7 @@ declare class GuildAssetsMethods {
1253
1253
  * const client = new SnowTransfer("TOKEN")
1254
1254
  * const stickers = await client.guildAssets.getGuildStickers("guild id")
1255
1255
  */
1256
- getGuildStickers(guildId: string): Promise<APITypes.RESTGetAPIGuildStickersResult>;
1256
+ getGuildStickers(guildId: string): Promise<RESTGetAPIGuildStickersResult>;
1257
1257
  /**
1258
1258
  * Get a guild sticker
1259
1259
  * @param guildId Id of the guild
@@ -1268,7 +1268,7 @@ declare class GuildAssetsMethods {
1268
1268
  * const client = new SnowTransfer("TOKEN")
1269
1269
  * const sticker = await client.guildAssets.getGuildSticker("guild id", "sticker id")
1270
1270
  */
1271
- getGuildSticker(guildId: string, stickerId: string): Promise<APITypes.RESTGetAPIGuildStickerResult>;
1271
+ getGuildSticker(guildId: string, stickerId: string): Promise<RESTGetAPIGuildStickerResult>;
1272
1272
  /**
1273
1273
  * Create a guild sticker
1274
1274
  * @param guildId Id of the guild
@@ -1295,10 +1295,10 @@ declare class GuildAssetsMethods {
1295
1295
  * }
1296
1296
  * const sticker = await client.guildAssets.createGuildSticker("guild id", stickerData)
1297
1297
  */
1298
- createGuildSticker(guildId: string, data: APITypes.RESTPostAPIGuildStickerFormDataBody & {
1298
+ createGuildSticker(guildId: string, data: RESTPostAPIGuildStickerFormDataBody & {
1299
1299
  file: Buffer;
1300
1300
  reason?: string;
1301
- }): Promise<APITypes.RESTPostAPIGuildStickerResult>;
1301
+ }): Promise<RESTPostAPIGuildStickerResult>;
1302
1302
  /**
1303
1303
  * Update a guild sticker
1304
1304
  * @param guildId Id of the guild
@@ -1315,9 +1315,9 @@ declare class GuildAssetsMethods {
1315
1315
  * const client = new SnowTransfer("TOKEN")
1316
1316
  * const sticker = await client.guildAssets.updateGuildSticker("guild id", "sticker id", { name: "nicerSticker", reason: "because it was nicer" })
1317
1317
  */
1318
- updateGuildSticker(guildId: string, stickerId: string, data: APITypes.RESTPatchAPIGuildStickerJSONBody & {
1318
+ updateGuildSticker(guildId: string, stickerId: string, data: RESTPatchAPIGuildStickerJSONBody & {
1319
1319
  reason?: string;
1320
- }): Promise<APITypes.RESTPatchAPIGuildStickerResult>;
1320
+ }): Promise<RESTPatchAPIGuildStickerResult>;
1321
1321
  /**
1322
1322
  * Delete a guild sticker
1323
1323
  * @param guildId Id of the guild
@@ -1333,7 +1333,7 @@ declare class GuildAssetsMethods {
1333
1333
  * const client = new SnowTransfer("TOKEN")
1334
1334
  * client.guildAssets.deleteGuildSticker("guild id", "sticker id", "It was too nice")
1335
1335
  */
1336
- deleteGuildSticker(guildId: string, stickerId: string, reason?: string): Promise<APITypes.RESTDeleteAPIGuildStickerResult>;
1336
+ deleteGuildSticker(guildId: string, stickerId: string, reason?: string): Promise<RESTDeleteAPIGuildStickerResult>;
1337
1337
  }
1338
1338
 
1339
1339
  /**
@@ -1364,7 +1364,7 @@ declare class GuildMethods {
1364
1364
  * }
1365
1365
  * const guild = await client.guild.createGuild(guildData)
1366
1366
  */
1367
- createGuild(data: APITypes.RESTPostAPIGuildsJSONBody): Promise<APITypes.RESTPostAPIGuildsResult>;
1367
+ createGuild(data: RESTPostAPIGuildsJSONBody): Promise<RESTPostAPIGuildsResult>;
1368
1368
  /**
1369
1369
  * Get a guild via Id
1370
1370
  *
@@ -1377,7 +1377,7 @@ declare class GuildMethods {
1377
1377
  * const client = new SnowTransfer("TOKEN")
1378
1378
  * const guild = await client.guild.getGuild("guild id")
1379
1379
  */
1380
- getGuild(guildId: string, withCounts?: boolean): Promise<APITypes.RESTGetAPIGuildResult>;
1380
+ getGuild(guildId: string, withCounts?: boolean): Promise<RESTGetAPIGuildResult>;
1381
1381
  /**
1382
1382
  * Gets a guild's preview. If the CurrentUser is not in the guild, the guild must be lurkable
1383
1383
  * @param guildId Id of the guild
@@ -1387,7 +1387,7 @@ declare class GuildMethods {
1387
1387
  * const client = new SnowTransfer("TOKEN")
1388
1388
  * const guildPreview = await client.guild.getGuildPreview("guild id")
1389
1389
  */
1390
- getGuildPreview(guildId: string): Promise<APITypes.RESTGetAPIGuildPreviewResult>;
1390
+ getGuildPreview(guildId: string): Promise<RESTGetAPIGuildPreviewResult>;
1391
1391
  /**
1392
1392
  * Update a guild
1393
1393
  * @param guildId Id of the guild
@@ -1406,7 +1406,7 @@ declare class GuildMethods {
1406
1406
  * }
1407
1407
  * client.guild.updateGuild("guild Id", guildData)
1408
1408
  */
1409
- updateGuild(guildId: string, data: APITypes.RESTPatchAPIGuildJSONBody): Promise<APITypes.RESTPatchAPIGuildResult>;
1409
+ updateGuild(guildId: string, data: RESTPatchAPIGuildJSONBody): Promise<RESTPatchAPIGuildResult>;
1410
1410
  /**
1411
1411
  * Delete a guild
1412
1412
  *
@@ -1420,7 +1420,7 @@ declare class GuildMethods {
1420
1420
  * const client = new SnowTransfer("TOKEN")
1421
1421
  * client.guild.deleteGuild("guild id")
1422
1422
  */
1423
- deleteGuild(guildId: string): Promise<APITypes.RESTDeleteAPIGuildResult>;
1423
+ deleteGuild(guildId: string): Promise<RESTDeleteAPIGuildResult>;
1424
1424
  /**
1425
1425
  * Get a list of all channels for a guild. Does not include threads
1426
1426
  *
@@ -1432,7 +1432,7 @@ declare class GuildMethods {
1432
1432
  * const client = new SnowTransfer("TOKEN")
1433
1433
  * const channels = await client.guild.getGuildChannels("guild id")
1434
1434
  */
1435
- getGuildChannels(guildId: string): Promise<APITypes.RESTGetAPIGuildChannelsResult>;
1435
+ getGuildChannels(guildId: string): Promise<RESTGetAPIGuildChannelsResult>;
1436
1436
  /**
1437
1437
  * Create a channel within a guild
1438
1438
  * @param guildId Id of the guild
@@ -1455,7 +1455,7 @@ declare class GuildMethods {
1455
1455
  * \}
1456
1456
  * const channel = await client.guild.createGuildChannel("guild id", channelData)
1457
1457
  */
1458
- createGuildChannel(guildId: string, data: APITypes.RESTPostAPIGuildChannelJSONBody): Promise<APITypes.RESTPostAPIGuildChannelResult>;
1458
+ createGuildChannel(guildId: string, data: RESTPostAPIGuildChannelJSONBody): Promise<RESTPostAPIGuildChannelResult>;
1459
1459
  /**
1460
1460
  * Batch update the positions of channels. Only those being moved needs to be included here
1461
1461
  * @param guildId Id of the guild
@@ -1471,7 +1471,7 @@ declare class GuildMethods {
1471
1471
  * const client = new SnowTransfer("TOKEN")
1472
1472
  * client.guild.updateChannelPositions("guild id", [{ id: "channel id", position: 2, category_id: "category id" }], "they looked out of order")
1473
1473
  */
1474
- updateChannelPositions(guildId: string, data: APITypes.RESTPatchAPIGuildChannelPositionsJSONBody, reason?: string): Promise<APITypes.RESTPatchAPIGuildChannelPositionsResult>;
1474
+ updateChannelPositions(guildId: string, data: RESTPatchAPIGuildChannelPositionsJSONBody, reason?: string): Promise<RESTPatchAPIGuildChannelPositionsResult>;
1475
1475
  /**
1476
1476
  * Returns all active threads in the guild, including public and private threads. Threads are ordered by their `id`, in descending order
1477
1477
  * @param guildId Id of the guild
@@ -1481,7 +1481,7 @@ declare class GuildMethods {
1481
1481
  * const client = new SnowTransfer("TOKEN")
1482
1482
  * const threads = await client.guild.listActiveThreads("guild id")
1483
1483
  */
1484
- listActiveThreads(guildId: string): Promise<APITypes.RESTGetAPIGuildThreadsResult>;
1484
+ listActiveThreads(guildId: string): Promise<RESTGetAPIGuildThreadsResult>;
1485
1485
  /**
1486
1486
  * Get a guild member via Id
1487
1487
  *
@@ -1494,7 +1494,7 @@ declare class GuildMethods {
1494
1494
  * const client = new SnowTransfer("TOKEN")
1495
1495
  * const member = await client.guild.getGuildMember("guild id", "member id")
1496
1496
  */
1497
- getGuildMember(guildId: string, memberId: string): Promise<APITypes.RESTGetAPIGuildMemberResult>;
1497
+ getGuildMember(guildId: string, memberId: string): Promise<RESTGetAPIGuildMemberResult>;
1498
1498
  /**
1499
1499
  * Get a list of guild members
1500
1500
  *
@@ -1512,7 +1512,7 @@ declare class GuildMethods {
1512
1512
  * const client = new SnowTransfer("TOKEN")
1513
1513
  * const members = await client.guild.getGuildMembers("guild id", { limit: 10 })
1514
1514
  */
1515
- getGuildMembers(guildId: string, data?: APITypes.RESTGetAPIGuildMembersQuery): Promise<APITypes.RESTGetAPIGuildMembersResult>;
1515
+ getGuildMembers(guildId: string, data?: RESTGetAPIGuildMembersQuery): Promise<RESTGetAPIGuildMembersResult>;
1516
1516
  /**
1517
1517
  * Get a list of guild members that match a query
1518
1518
  * @param guildId Id of the guild
@@ -1524,7 +1524,7 @@ declare class GuildMethods {
1524
1524
  * const client = new SnowTransfer("TOKEN")
1525
1525
  * const members = await client.guild.searchGuildMembers("guild id", { query: "Wolke" })
1526
1526
  */
1527
- searchGuildMembers(guildId: string, options: APITypes.RESTGetAPIGuildMembersSearchQuery): Promise<APITypes.RESTGetAPIGuildMembersSearchResult>;
1527
+ searchGuildMembers(guildId: string, options: RESTGetAPIGuildMembersSearchQuery): Promise<RESTGetAPIGuildMembersSearchResult>;
1528
1528
  /**
1529
1529
  * Add a guild member to a guild via oauth2 access token
1530
1530
  *
@@ -1550,7 +1550,7 @@ declare class GuildMethods {
1550
1550
  * }
1551
1551
  * client.guild.addGuildMember("guildId", "memberId", memberData)
1552
1552
  */
1553
- addGuildMember(guildId: string, memberId: string, data: APITypes.RESTPutAPIGuildMemberJSONBody): Promise<APITypes.RESTPutAPIGuildMemberResult>;
1553
+ addGuildMember(guildId: string, memberId: string, data: RESTPutAPIGuildMemberJSONBody): Promise<RESTPutAPIGuildMemberResult>;
1554
1554
  /**
1555
1555
  * Update properties of a guild member
1556
1556
  * @param guildId Id of the guild
@@ -1576,7 +1576,7 @@ declare class GuildMethods {
1576
1576
  * }
1577
1577
  * const member = await client.guild.updateGuildMember("guild Id", "memberId", memberData)
1578
1578
  */
1579
- updateGuildMember(guildId: string, memberId: string, data: APITypes.RESTPatchAPIGuildMemberJSONBody): Promise<APITypes.RESTPatchAPIGuildMemberResult>;
1579
+ updateGuildMember(guildId: string, memberId: string, data: RESTPatchAPIGuildMemberJSONBody): Promise<RESTPatchAPIGuildMemberResult>;
1580
1580
  /**
1581
1581
  * Update the nick of the CurrentMember
1582
1582
  * @param guildId Id of the guild
@@ -1595,9 +1595,9 @@ declare class GuildMethods {
1595
1595
  * }
1596
1596
  * client.guild.updateSelf("guildId", nickData)
1597
1597
  */
1598
- updateSelf(guildId: string, data: APITypes.RESTPatchAPICurrentGuildMemberJSONBody & {
1598
+ updateSelf(guildId: string, data: RESTPatchAPICurrentGuildMemberJSONBody & {
1599
1599
  reason?: string;
1600
- }): Promise<APITypes.APIGuildMember>;
1600
+ }): Promise<APIGuildMember>;
1601
1601
  /**
1602
1602
  * Add a role to a guild member
1603
1603
  * @param guildId Id of the guild
@@ -1615,7 +1615,7 @@ declare class GuildMethods {
1615
1615
  * const client = new SnowTransfer("TOKEN")
1616
1616
  * client.guild.addGuildMemberRole("guildId", "memberId", "roleId", "I want to add a role")
1617
1617
  */
1618
- addGuildMemberRole(guildId: string, memberId: string, roleId: string, reason?: string): Promise<APITypes.RESTPutAPIGuildMemberRoleResult>;
1618
+ addGuildMemberRole(guildId: string, memberId: string, roleId: string, reason?: string): Promise<RESTPutAPIGuildMemberRoleResult>;
1619
1619
  /**
1620
1620
  * Remove a role from a guild member
1621
1621
  * @param guildId Id of the guild
@@ -1633,7 +1633,7 @@ declare class GuildMethods {
1633
1633
  * const client = new SnowTransfer("TOKEN")
1634
1634
  * client.guild.removeGuildMemberRole("guildId", "memberId", "roleId", "I want to remove a role")
1635
1635
  */
1636
- removeGuildMemberRole(guildId: string, memberId: string, roleId: string, reason?: string): Promise<APITypes.RESTDeleteAPIGuildMemberRoleResult>;
1636
+ removeGuildMemberRole(guildId: string, memberId: string, roleId: string, reason?: string): Promise<RESTDeleteAPIGuildMemberRoleResult>;
1637
1637
  /**
1638
1638
  * Remove a guild member (aka kick them)
1639
1639
  * @param guildId Id of the guild
@@ -1650,7 +1650,7 @@ declare class GuildMethods {
1650
1650
  * const client = new SnowTransfer("TOKEN")
1651
1651
  * client.guild.removeGuildMember("guild Id", "memberId", "spam")
1652
1652
  */
1653
- removeGuildMember(guildId: string, memberId: string, reason?: string): Promise<APITypes.RESTDeleteAPIGuildMemberResult>;
1653
+ removeGuildMember(guildId: string, memberId: string, reason?: string): Promise<RESTDeleteAPIGuildMemberResult>;
1654
1654
  /**
1655
1655
  * Get bans of a guild
1656
1656
  * @param guildId Id of the guild
@@ -1665,7 +1665,7 @@ declare class GuildMethods {
1665
1665
  * const client = new SnowTransfer("TOKEN")
1666
1666
  * const bans = await client.guild.getGuildBans("guildId")
1667
1667
  */
1668
- getGuildBans(guildId: string, options?: APITypes.RESTGetAPIGuildBansQuery): Promise<APITypes.RESTGetAPIGuildBansResult>;
1668
+ getGuildBans(guildId: string, options?: RESTGetAPIGuildBansQuery): Promise<RESTGetAPIGuildBansResult>;
1669
1669
  /**
1670
1670
  * Get a specific ban of a guild member
1671
1671
  * @param guildId Id of the guild
@@ -1682,7 +1682,7 @@ declare class GuildMethods {
1682
1682
  * const client = new SnowTransfer("TOKEN")
1683
1683
  * const ban = await client.guild.getGuildBan("guildId", "memberId")
1684
1684
  */
1685
- getGuildBan(guildId: string, memberId: string): Promise<APITypes.RESTGetAPIGuildBanResult>;
1685
+ getGuildBan(guildId: string, memberId: string): Promise<RESTGetAPIGuildBanResult>;
1686
1686
  /**
1687
1687
  * Ban a guild member
1688
1688
  * @param guildId Id of the guild
@@ -1703,9 +1703,9 @@ declare class GuildMethods {
1703
1703
  * }
1704
1704
  * client.guild.createGuildBan("guild Id", "memberId", banData)
1705
1705
  */
1706
- createGuildBan(guildId: string, memberId: string, data?: APITypes.RESTPutAPIGuildBanJSONBody & {
1706
+ createGuildBan(guildId: string, memberId: string, data?: RESTPutAPIGuildBanJSONBody & {
1707
1707
  reason?: string;
1708
- }): Promise<APITypes.RESTPutAPIGuildBanResult>;
1708
+ }): Promise<RESTPutAPIGuildBanResult>;
1709
1709
  /**
1710
1710
  * Remove a ban of a user
1711
1711
  * @param guildId Id of the guild
@@ -1722,7 +1722,7 @@ declare class GuildMethods {
1722
1722
  * const client = new SnowTransfer("TOKEN")
1723
1723
  * client.guild.removeGuildBan("guildId", "memberId", "This guy was cool")
1724
1724
  */
1725
- removeGuildBan(guildId: string, memberId: string, reason?: string): Promise<APITypes.RESTDeleteAPIGuildBanResult>;
1725
+ removeGuildBan(guildId: string, memberId: string, reason?: string): Promise<RESTDeleteAPIGuildBanResult>;
1726
1726
  /**
1727
1727
  * Get a list of roles for a guild
1728
1728
  * @param guildId Id of the guild
@@ -1736,7 +1736,7 @@ declare class GuildMethods {
1736
1736
  * const client = new SnowTransfer("TOKEN")
1737
1737
  * const roles = await client.guild.getGuildRoles("guildId")
1738
1738
  */
1739
- getGuildRoles(guildId: string): Promise<APITypes.RESTGetAPIGuildRolesResult>;
1739
+ getGuildRoles(guildId: string): Promise<RESTGetAPIGuildRolesResult>;
1740
1740
  /**
1741
1741
  * Create a new Role
1742
1742
  * @param guildId Id of the guild
@@ -1756,9 +1756,9 @@ declare class GuildMethods {
1756
1756
  * }
1757
1757
  * client.guild.createGuildRole("guild Id", roleData)
1758
1758
  */
1759
- createGuildRole(guildId: string, data?: APITypes.RESTPostAPIGuildRoleJSONBody & {
1759
+ createGuildRole(guildId: string, data?: RESTPostAPIGuildRoleJSONBody & {
1760
1760
  reason?: string;
1761
- }): Promise<APITypes.RESTPostAPIGuildRoleResult>;
1761
+ }): Promise<RESTPostAPIGuildRoleResult>;
1762
1762
  /**
1763
1763
  * Modify the positions of roles
1764
1764
  * @param guildId Id of the guild
@@ -1773,7 +1773,7 @@ declare class GuildMethods {
1773
1773
  * const client = new SnowTransfer("TOKEN")
1774
1774
  * const roles = await client.guild.updateGuildRolePositions("guildId", [{ id: "guild id", position: 1 }, { id: "role id 2", position: 2 }])
1775
1775
  */
1776
- updateGuildRolePositions(guildId: string, data: APITypes.RESTPatchAPIGuildRolePositionsJSONBody, reason?: string): Promise<APITypes.RESTPatchAPIGuildRolePositionsResult>;
1776
+ updateGuildRolePositions(guildId: string, data: RESTPatchAPIGuildRolePositionsJSONBody, reason?: string): Promise<RESTPatchAPIGuildRolePositionsResult>;
1777
1777
  /**
1778
1778
  * Update a guild role
1779
1779
  * @param guildId Id of the guild
@@ -1792,7 +1792,7 @@ declare class GuildMethods {
1792
1792
  * }
1793
1793
  * client.guild.updateGuildRole("guildId", "roleId", roleData)
1794
1794
  */
1795
- updateGuildRole(guildId: string, roleId: string, data: APITypes.RESTPatchAPIGuildRoleJSONBody): Promise<APITypes.RESTPatchAPIGuildRoleResult>;
1795
+ updateGuildRole(guildId: string, roleId: string, data: RESTPatchAPIGuildRoleJSONBody): Promise<RESTPatchAPIGuildRoleResult>;
1796
1796
  /**
1797
1797
  * Delete a role from the guild
1798
1798
  * @param guildId Id of the guild
@@ -1809,7 +1809,7 @@ declare class GuildMethods {
1809
1809
  * const client = new SnowTransfer("TOKEN")
1810
1810
  * client.guild.deleteGuildRole("guildId", "roleId", "This role is too cool")
1811
1811
  */
1812
- removeGuildRole(guildId: string, roleId: string, reason?: string): Promise<APITypes.RESTDeleteAPIGuildRoleResult>;
1812
+ removeGuildRole(guildId: string, roleId: string, reason?: string): Promise<RESTDeleteAPIGuildRoleResult>;
1813
1813
  /**
1814
1814
  * Get the amount of members that would be pruned when a prune with the passed amount of days would be started
1815
1815
  * @param guildId Id of the guild
@@ -1824,7 +1824,7 @@ declare class GuildMethods {
1824
1824
  * const client = new SnowTransfer("TOKEN")
1825
1825
  * const data = await client.guild.getGuildPruneCount("guildId", { days: 7 })
1826
1826
  */
1827
- getGuildPruneCount(guildId: string, query?: APITypes.RESTGetAPIGuildPruneCountQuery): Promise<APITypes.RESTGetAPIGuildPruneCountResult>;
1827
+ getGuildPruneCount(guildId: string, query?: RESTGetAPIGuildPruneCountQuery): Promise<RESTGetAPIGuildPruneCountResult>;
1828
1828
  /**
1829
1829
  * Start a prune
1830
1830
  * @param guildId Id of the guild
@@ -1839,16 +1839,16 @@ declare class GuildMethods {
1839
1839
  * const client = new SnowTransfer("TOKEN")
1840
1840
  * const data = await client.guild.startGuildPrune("guildId", { days: 7 })
1841
1841
  */
1842
- startGuildPrune(guildId: string, data: APITypes.RESTPostAPIGuildPruneJSONBody & {
1842
+ startGuildPrune(guildId: string, data: RESTPostAPIGuildPruneJSONBody & {
1843
1843
  computer_prune_count: true;
1844
1844
  reason?: string;
1845
- }): Promise<APITypes.RESTPostAPIGuildPruneResult & {
1845
+ }): Promise<RESTPostAPIGuildPruneResult & {
1846
1846
  pruned: number;
1847
1847
  }>;
1848
- startGuildPrune(guildId: string, data: APITypes.RESTPostAPIGuildPruneJSONBody & {
1848
+ startGuildPrune(guildId: string, data: RESTPostAPIGuildPruneJSONBody & {
1849
1849
  computer_prune_count: false;
1850
1850
  reason?: string;
1851
- }): Promise<APITypes.RESTPostAPIGuildPruneResult & {
1851
+ }): Promise<RESTPostAPIGuildPruneResult & {
1852
1852
  pruned: null;
1853
1853
  }>;
1854
1854
  /**
@@ -1860,7 +1860,7 @@ declare class GuildMethods {
1860
1860
  * const client = new SnowTransfer("TOKEN")
1861
1861
  * const regions = await client.guild.getGuildVoiceRegions("guildId")
1862
1862
  */
1863
- getGuildVoiceRegions(guildId: string): Promise<APITypes.RESTGetAPIGuildVoiceRegionsResult>;
1863
+ getGuildVoiceRegions(guildId: string): Promise<RESTGetAPIGuildVoiceRegionsResult>;
1864
1864
  /**
1865
1865
  * Get invites for a guild
1866
1866
  * @param guildId Id of the guild
@@ -1874,7 +1874,7 @@ declare class GuildMethods {
1874
1874
  * const client = new SnowTransfer("TOKEN")
1875
1875
  * const invites = await client.guild.getGuildInvites("guildId")
1876
1876
  */
1877
- getGuildInvites(guildId: string): Promise<APITypes.RESTGetAPIGuildInvitesResult>;
1877
+ getGuildInvites(guildId: string): Promise<RESTGetAPIGuildInvitesResult>;
1878
1878
  /**
1879
1879
  * Get integrations for a guild
1880
1880
  * @param guildId Id of the guild
@@ -1888,7 +1888,7 @@ declare class GuildMethods {
1888
1888
  * const client = new SnowTransfer("TOKEN")
1889
1889
  * const integrations = await client.guild.getGuildIntegrations("guildId")
1890
1890
  */
1891
- getGuildIntegrations(guildId: string): Promise<APITypes.RESTGetAPIGuildIntegrationsResult>;
1891
+ getGuildIntegrations(guildId: string): Promise<RESTGetAPIGuildIntegrationsResult>;
1892
1892
  /**
1893
1893
  * Delete a guild integration
1894
1894
  * @param guildId Id of the guild
@@ -1903,7 +1903,7 @@ declare class GuildMethods {
1903
1903
  * const client = new SnowTransfer("TOKEN")
1904
1904
  * await client.guild.deleteGuildIntegration("guildId", "integrationId", "Didn't need anymore")
1905
1905
  */
1906
- removeGuildIntegration(guildId: string, integrationId: string, reason?: string): Promise<APITypes.RESTDeleteAPIGuildIntegrationResult>;
1906
+ removeGuildIntegration(guildId: string, integrationId: string, reason?: string): Promise<RESTDeleteAPIGuildIntegrationResult>;
1907
1907
  /**
1908
1908
  * Get a guild widget settings object
1909
1909
  * @param guildId Id of the guild
@@ -1917,7 +1917,7 @@ declare class GuildMethods {
1917
1917
  * const client = new SnowTransfer("TOKEN")
1918
1918
  * const widgetSettings = await client.guild.getGuildWidgetSettings("guildId")
1919
1919
  */
1920
- getGuildWidgetSettings(guildId: string): Promise<APITypes.RESTGetAPIGuildWidgetSettingsResult>;
1920
+ getGuildWidgetSettings(guildId: string): Promise<RESTGetAPIGuildWidgetSettingsResult>;
1921
1921
  /**
1922
1922
  * Update a guild widget settings object
1923
1923
  * @param guildId Id of the guild
@@ -1933,9 +1933,9 @@ declare class GuildMethods {
1933
1933
  * const client = new SnowTransfer("TOKEN")
1934
1934
  * const widgetSettings = await client.guild.updateGuildWidgetSettings("guildId", { enabled: false })
1935
1935
  */
1936
- updateGuildWidgetSettings(guildId: string, data: Partial<APITypes.RESTPatchAPIGuildWidgetSettingsJSONBody & {
1936
+ updateGuildWidgetSettings(guildId: string, data: Partial<RESTPatchAPIGuildWidgetSettingsJSONBody & {
1937
1937
  reason?: string;
1938
- }>): Promise<APITypes.RESTPatchAPIGuildWidgetSettingsResult>;
1938
+ }>): Promise<RESTPatchAPIGuildWidgetSettingsResult>;
1939
1939
  /**
1940
1940
  * Gets a guild widget object
1941
1941
  * @param guildId Id of the guild
@@ -1945,7 +1945,7 @@ declare class GuildMethods {
1945
1945
  * const client = new SnowTransfer("TOKEN")
1946
1946
  * const widget = await client.guild.getGuildWidget("guildId")
1947
1947
  */
1948
- getGuildWidget(guildId: string): Promise<APITypes.APIGuildWidget>;
1948
+ getGuildWidget(guildId: string): Promise<APIGuildWidget>;
1949
1949
  /**
1950
1950
  * Get a guild's vanity URL code
1951
1951
  * @param guildId Id of the guild
@@ -1959,7 +1959,7 @@ declare class GuildMethods {
1959
1959
  * const client = new SnowTransfer("TOKEN")
1960
1960
  * const vanityUrl = await client.guild.getGuildVanityUrl("guildId")
1961
1961
  */
1962
- getGuildVanityURL(guildId: string): Promise<APITypes.RESTGetAPIGuildVanityUrlResult>;
1962
+ getGuildVanityURL(guildId: string): Promise<RESTGetAPIGuildVanityUrlResult>;
1963
1963
  /**
1964
1964
  * Get a guild's welcome screen object
1965
1965
  * @param guildId Id of the guild
@@ -1973,7 +1973,7 @@ declare class GuildMethods {
1973
1973
  * const client = new SnowTransfer("TOKEN")
1974
1974
  * const welcomeScreen = await client.guild.getGuildWelcomeScreen("guildId")
1975
1975
  */
1976
- getGuildWelcomeScreen(guildId: string): Promise<APITypes.RESTGetAPIGuildWelcomeScreenResult>;
1976
+ getGuildWelcomeScreen(guildId: string): Promise<RESTGetAPIGuildWelcomeScreenResult>;
1977
1977
  /**
1978
1978
  * Update a guild welcome screen object
1979
1979
  * @param guildId Id of guild
@@ -1989,9 +1989,9 @@ declare class GuildMethods {
1989
1989
  * const client = new SnowTransfer("TOKEN")
1990
1990
  * const welcomeScreen = await client.guild.updateGuildWelcomeScreen("guildId", { enabled: false })
1991
1991
  */
1992
- editGuildWelcomeScreen(guildId: string, data: APITypes.RESTPatchAPIGuildWelcomeScreenJSONBody & {
1992
+ editGuildWelcomeScreen(guildId: string, data: RESTPatchAPIGuildWelcomeScreenJSONBody & {
1993
1993
  reason?: string;
1994
- }): Promise<APITypes.RESTPatchAPIGuildWelcomeScreenResult>;
1994
+ }): Promise<RESTPatchAPIGuildWelcomeScreenResult>;
1995
1995
  /**
1996
1996
  * Updates the current user's voice state in a stage channel
1997
1997
  * @param guildId Id of the guild
@@ -2008,7 +2008,7 @@ declare class GuildMethods {
2008
2008
  * const client = new SnowTransfer("TOKEN")
2009
2009
  * client.guild.updateGuildVoiceState("guildId", { channel_id: "channel id", suppress: false })
2010
2010
  */
2011
- updateCurrentUserVoiceState(guildId: string, data: APITypes.RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody): Promise<APITypes.RESTPatchAPIGuildVoiceStateCurrentMemberResult>;
2011
+ updateCurrentUserVoiceState(guildId: string, data: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody): Promise<RESTPatchAPIGuildVoiceStateCurrentMemberResult>;
2012
2012
  /**
2013
2013
  * Updates a user's voice state in a stage channel
2014
2014
  * @param guildId Id of the guild
@@ -2024,7 +2024,7 @@ declare class GuildMethods {
2024
2024
  * const client = new SnowTransfer("TOKEN")
2025
2025
  * client.guild.updateGuildVoiceState("guildId", "userId", { channel_id: "channel id", suppress: true })
2026
2026
  */
2027
- updateUserVoiceState(guildId: string, userId: string, data: APITypes.RESTPatchAPIGuildVoiceStateUserJSONBody): Promise<APITypes.RESTPatchAPIGuildVoiceStateUserResult>;
2027
+ updateUserVoiceState(guildId: string, userId: string, data: RESTPatchAPIGuildVoiceStateUserJSONBody): Promise<RESTPatchAPIGuildVoiceStateUserResult>;
2028
2028
  }
2029
2029
 
2030
2030
  /**
@@ -2051,7 +2051,7 @@ declare class GuildScheduledEventMethods {
2051
2051
  * const client = new SnowTransfer("TOKEN")
2052
2052
  * const events = await client.guildScheduledEvent.listGuildScheduledEvents(guildId)
2053
2053
  */
2054
- listGuildScheduledEvents(guildId: string, withCounts?: boolean): Promise<APITypes.RESTGetAPIGuildScheduledEventsResult>;
2054
+ listGuildScheduledEvents(guildId: string, withCounts?: boolean): Promise<RESTGetAPIGuildScheduledEventsResult>;
2055
2055
  /**
2056
2056
  * Create a scheduled event for a guild
2057
2057
  * @param guildId The Id of the guild
@@ -2077,7 +2077,7 @@ declare class GuildScheduledEventMethods {
2077
2077
  * }
2078
2078
  * const event = await client.guildScheduledEvent.createGuildScheduledEvent(guildId, eventData)
2079
2079
  */
2080
- createGuildScheduledEvent(guildId: string, data: APITypes.RESTPostAPIGuildScheduledEventJSONBody): Promise<APITypes.RESTPostAPIGuildScheduledEventResult>;
2080
+ createGuildScheduledEvent(guildId: string, data: RESTPostAPIGuildScheduledEventJSONBody): Promise<RESTPostAPIGuildScheduledEventResult>;
2081
2081
  /**
2082
2082
  * Get a specific scheduled event for a guild
2083
2083
  * @param guildId The Id of the guild
@@ -2093,7 +2093,7 @@ declare class GuildScheduledEventMethods {
2093
2093
  * const client = new SnowTransfer("TOKEN")
2094
2094
  * const event = await client.guildScheduledEvent.getGuildScheduledEvent(guildId, eventId)
2095
2095
  */
2096
- getGuildScheduledEvent(guildId: string, eventId: string, withCounts?: boolean): Promise<APITypes.RESTGetAPIGuildScheduledEventResult>;
2096
+ getGuildScheduledEvent(guildId: string, eventId: string, withCounts?: boolean): Promise<RESTGetAPIGuildScheduledEventResult>;
2097
2097
  /**
2098
2098
  * Edit the details of a scheduled event for a guild
2099
2099
  * @param guildId The Id of the guild
@@ -2115,7 +2115,7 @@ declare class GuildScheduledEventMethods {
2115
2115
  * const client = new SnowTransfer("TOKEN")
2116
2116
  * const event = await client.guildScheduledEvent.editGuildScheduledEvent(guildId, eventId, { entity_type: 3, channel_id: null, entity_metadata: { location: "Brazil" }, scheduled_end_time: "2025-01-01T00:00:00.000Z" })
2117
2117
  */
2118
- editGuildScheduledEvent(guildId: string, eventId: string, data: APITypes.RESTPatchAPIGuildScheduledEventJSONBody): Promise<APITypes.RESTPatchAPIGuildScheduledEventResult>;
2118
+ editGuildScheduledEvent(guildId: string, eventId: string, data: RESTPatchAPIGuildScheduledEventJSONBody): Promise<RESTPatchAPIGuildScheduledEventResult>;
2119
2119
  /**
2120
2120
  * Delete a specific scheduled event for a guild
2121
2121
  * @param guildId The Id of the guild
@@ -2135,7 +2135,7 @@ declare class GuildScheduledEventMethods {
2135
2135
  * const client = new SnowTransfer("TOKEN")
2136
2136
  * client.guildScheduledEvent.deleteGuildScheduledEvent(guildId, eventId)
2137
2137
  */
2138
- deleteGuildScheduledEvent(guildId: string, eventId: string): Promise<APITypes.RESTDeleteAPIGuildScheduledEventResult>;
2138
+ deleteGuildScheduledEvent(guildId: string, eventId: string): Promise<RESTDeleteAPIGuildScheduledEventResult>;
2139
2139
  /**
2140
2140
  * Get a list of users attending a specific event
2141
2141
  * @param guildId The Id of the guild
@@ -2151,7 +2151,7 @@ declare class GuildScheduledEventMethods {
2151
2151
  * const client = new SnowTransfer("TOKEN")
2152
2152
  * const users = await client.guildScheduledEvent.getGuildScheduledEventUsers(guildId, eventId)
2153
2153
  */
2154
- getGuildScheduledEventUsers(guildId: string, eventId: string, query?: APITypes.RESTGetAPIGuildScheduledEventUsersQuery): Promise<APITypes.RESTGetAPIGuildScheduledEventUsersResult>;
2154
+ getGuildScheduledEventUsers(guildId: string, eventId: string, query?: RESTGetAPIGuildScheduledEventUsersQuery): Promise<RESTGetAPIGuildScheduledEventUsersResult>;
2155
2155
  }
2156
2156
 
2157
2157
  /**
@@ -2177,7 +2177,7 @@ declare class GuildTemplateMethods {
2177
2177
  * const client = new SnowTransfer("TOKEN")
2178
2178
  * const template = await client.guildTemplate.getGuildTemplate("code")
2179
2179
  */
2180
- getGuildTemplate(code: string): Promise<APITypes.RESTGetAPITemplateResult>;
2180
+ getGuildTemplate(code: string): Promise<RESTGetAPITemplateResult>;
2181
2181
  /**
2182
2182
  * Creates a guild from a template. If using a bot account, the bot can only be in < 10 guilds (guild create limitation)
2183
2183
  * @param code The code of the template
@@ -2188,7 +2188,7 @@ declare class GuildTemplateMethods {
2188
2188
  * const client = new SnowTransfer("TOKEN")
2189
2189
  * const guild = await client.guildTemplate.createGuildFromGuildTemplate("code", { name: "Cool guild" })
2190
2190
  */
2191
- createGuildFromGuildTemplate(code: string, options: APITypes.RESTPostAPITemplateCreateGuildJSONBody): Promise<APITypes.RESTPostAPITemplateCreateGuildResult>;
2191
+ createGuildFromGuildTemplate(code: string, options: RESTPostAPITemplateCreateGuildJSONBody): Promise<RESTPostAPITemplateCreateGuildResult>;
2192
2192
  /**
2193
2193
  * Gets all templates from a guild
2194
2194
  * @param guildId The Id of the guild
@@ -2202,7 +2202,7 @@ declare class GuildTemplateMethods {
2202
2202
  * const client = new SnowTransfer("TOKEN")
2203
2203
  * const templates = await client.guildTemplate.getGuildTemplates("guildId")
2204
2204
  */
2205
- getGuildTemplates(guildId: string): Promise<APITypes.RESTGetAPIGuildTemplatesResult>;
2205
+ getGuildTemplates(guildId: string): Promise<RESTGetAPIGuildTemplatesResult>;
2206
2206
  /**
2207
2207
  * Creates a template from the current state of the guild
2208
2208
  * @param guildId The Id of the guild
@@ -2217,7 +2217,7 @@ declare class GuildTemplateMethods {
2217
2217
  * const client = new SnowTransfer("TOKEN")
2218
2218
  * const template = await client.guildTemplate.createGuildTemplate("guildId", { name: "Cool guild template", description: "This is a cool guild template" })
2219
2219
  */
2220
- createGuildTemplate(guildId: string, data: APITypes.RESTPostAPIGuildTemplatesJSONBody): Promise<APITypes.RESTPostAPIGuildTemplatesResult>;
2220
+ createGuildTemplate(guildId: string, data: RESTPostAPIGuildTemplatesJSONBody): Promise<RESTPostAPIGuildTemplatesResult>;
2221
2221
  /**
2222
2222
  * Updates a guild template to match the current state of the guild
2223
2223
  * @param guildId The Id of the guild
@@ -2232,7 +2232,7 @@ declare class GuildTemplateMethods {
2232
2232
  * const client = new SnowTransfer("TOKEN")
2233
2233
  * const template = await client.guildTemplate.syncGuildTemplate("guildId", "code")
2234
2234
  */
2235
- syncGuildTemplate(guildId: string, code: string): Promise<APITypes.RESTPutAPIGuildTemplateSyncResult>;
2235
+ syncGuildTemplate(guildId: string, code: string): Promise<RESTPutAPIGuildTemplateSyncResult>;
2236
2236
  /**
2237
2237
  * Updates a guild template's metadata
2238
2238
  * @param guildId The Id of the guild
@@ -2248,7 +2248,7 @@ declare class GuildTemplateMethods {
2248
2248
  * const client = new SnowTransfer("TOKEN")
2249
2249
  * const template = await client.guildTemplate.modifyGuildTemplate("guildId", "code", { name: "Coolest guild template", description: "This is the coolest guild template hands down" })
2250
2250
  */
2251
- modifyGuildTemplate(guildId: string, code: string, data: APITypes.RESTPatchAPIGuildTemplateJSONBody): Promise<APITypes.RESTPatchAPIGuildTemplateResult>;
2251
+ modifyGuildTemplate(guildId: string, code: string, data: RESTPatchAPIGuildTemplateJSONBody): Promise<RESTPatchAPIGuildTemplateResult>;
2252
2252
  /**
2253
2253
  * Deletes a template from a guild
2254
2254
  * @param guildId The Id of the guild
@@ -2263,7 +2263,7 @@ declare class GuildTemplateMethods {
2263
2263
  * const client = new SnowTransfer("TOKEN")
2264
2264
  * const template = await client.guildTemplate.deleteGuildTemplate("guildId", "code")
2265
2265
  */
2266
- deleteGuildTemplate(guildId: string, code: string): Promise<APITypes.RESTDeleteAPIGuildTemplateResult>;
2266
+ deleteGuildTemplate(guildId: string, code: string): Promise<RESTDeleteAPIGuildTemplateResult>;
2267
2267
  }
2268
2268
 
2269
2269
  /**
@@ -2300,7 +2300,7 @@ declare class WebhookMethods {
2300
2300
  * }
2301
2301
  * const webhook = await client.webhook.createWebhook("channel Id", webhookData)
2302
2302
  */
2303
- createWebhook(channelId: string, data: APITypes.RESTPostAPIChannelWebhookJSONBody): Promise<APITypes.RESTPostAPIChannelWebhookResult>;
2303
+ createWebhook(channelId: string, data: RESTPostAPIChannelWebhookJSONBody): Promise<RESTPostAPIChannelWebhookResult>;
2304
2304
  /**
2305
2305
  * Get all webhooks within a channel
2306
2306
  * @param channelId Id of the channel
@@ -2315,7 +2315,7 @@ declare class WebhookMethods {
2315
2315
  * const client = new SnowTransfer("TOKEN")
2316
2316
  * const webhooks = await client.webhook.getChannelWebhooks("channel Id")
2317
2317
  */
2318
- getChannelWebhooks(channelId: string): Promise<APITypes.RESTGetAPIChannelWebhooksResult>;
2318
+ getChannelWebhooks(channelId: string): Promise<RESTGetAPIChannelWebhooksResult>;
2319
2319
  /**
2320
2320
  * Get all webhooks within a guild
2321
2321
  * @param guildId Id of the guild
@@ -2330,7 +2330,7 @@ declare class WebhookMethods {
2330
2330
  * const client = new SnowTransfer("TOKEN")
2331
2331
  * const webhooks = await client.webhook.getGuildWebhooks("guild Id")
2332
2332
  */
2333
- getGuildWebhooks(guildId: string): Promise<APITypes.RESTGetAPIGuildWebhooksResult>;
2333
+ getGuildWebhooks(guildId: string): Promise<RESTGetAPIGuildWebhooksResult>;
2334
2334
  /**
2335
2335
  * Get a single Webhook via Id
2336
2336
  * @param webhookId Id of the webhook
@@ -2346,7 +2346,7 @@ declare class WebhookMethods {
2346
2346
  * const client = new SnowTransfer() // No token needed if webhook token is provided
2347
2347
  * const webhook = await client.webhook.getWebhook("webhook Id", "webhook token")
2348
2348
  */
2349
- getWebhook(webhookId: string, token?: string): Promise<APITypes.RESTGetAPIWebhookResult>;
2349
+ getWebhook(webhookId: string, token?: string): Promise<RESTGetAPIWebhookResult>;
2350
2350
  /**
2351
2351
  * Update a webhook
2352
2352
  * @param webhookId Id of the webhook
@@ -2366,12 +2366,12 @@ declare class WebhookMethods {
2366
2366
  * }
2367
2367
  * const webhook = await client.webhook.updateWebhook("webhook Id", webhookData, "webhook token")
2368
2368
  */
2369
- updateWebhook(webhookId: string, data: APITypes.RESTPatchAPIWebhookWithTokenJSONBody & {
2369
+ updateWebhook(webhookId: string, data: RESTPatchAPIWebhookWithTokenJSONBody & {
2370
2370
  reason?: string;
2371
- }, token: string): Promise<APITypes.RESTPatchAPIWebhookWithTokenResult>;
2372
- updateWebhook(webhookId: string, data: APITypes.RESTPatchAPIWebhookJSONBody & {
2371
+ }, token: string): Promise<RESTPatchAPIWebhookWithTokenResult>;
2372
+ updateWebhook(webhookId: string, data: RESTPatchAPIWebhookJSONBody & {
2373
2373
  reason?: string;
2374
- }): Promise<APITypes.RESTPatchAPIWebhookResult>;
2374
+ }): Promise<RESTPatchAPIWebhookResult>;
2375
2375
  /**
2376
2376
  * Delete a Webhook
2377
2377
  * @param webhookId Id of the webhook
@@ -2387,7 +2387,7 @@ declare class WebhookMethods {
2387
2387
  * const client = new SnowTransfer(); // No token needed if webhook token is provided
2388
2388
  * client.webhook.deleteWebhook("webhook Id", "webhook token")
2389
2389
  */
2390
- deleteWebhook(webhookId: string, token?: string): Promise<APITypes.RESTDeleteAPIWebhookResult>;
2390
+ deleteWebhook(webhookId: string, token?: string): Promise<RESTDeleteAPIWebhookResult>;
2391
2391
  /**
2392
2392
  * Send a message via Webhook
2393
2393
  * @param webhookId Id of the webhook
@@ -2401,24 +2401,24 @@ declare class WebhookMethods {
2401
2401
  * const client = new SnowTransfer()
2402
2402
  * client.webhook.executeWebhook("webhook Id", "webhook token", { content: "Hi from my webhook" })
2403
2403
  */
2404
- executeWebhook(webhookId: string, token: string, data: APITypes.RESTPostAPIWebhookWithTokenJSONBody & {
2404
+ executeWebhook(webhookId: string, token: string, data: RESTPostAPIWebhookWithTokenJSONBody & {
2405
2405
  files?: Array<{
2406
2406
  name: string;
2407
2407
  file: Buffer;
2408
2408
  }>;
2409
- }, options?: APITypes.RESTPostAPIWebhookWithTokenQuery & {
2409
+ }, options?: RESTPostAPIWebhookWithTokenQuery & {
2410
2410
  wait?: false;
2411
2411
  disableEveryone?: boolean;
2412
- }): Promise<APITypes.RESTPostAPIWebhookWithTokenResult>;
2413
- executeWebhook(webhookId: string, token: string, data: APITypes.RESTPostAPIWebhookWithTokenJSONBody & {
2412
+ }): Promise<RESTPostAPIWebhookWithTokenResult>;
2413
+ executeWebhook(webhookId: string, token: string, data: RESTPostAPIWebhookWithTokenJSONBody & {
2414
2414
  files?: Array<{
2415
2415
  name: string;
2416
2416
  file: Buffer;
2417
2417
  }>;
2418
- }, options: APITypes.RESTPostAPIWebhookWithTokenQuery & {
2418
+ }, options: RESTPostAPIWebhookWithTokenQuery & {
2419
2419
  wait: true;
2420
2420
  disableEveryone?: boolean;
2421
- }): Promise<APITypes.RESTPostAPIWebhookWithTokenWaitResult>;
2421
+ }): Promise<RESTPostAPIWebhookWithTokenWaitResult>;
2422
2422
  /**
2423
2423
  * Execute a slack style Webhook
2424
2424
  * @param webhookId Id of the Webhook
@@ -2431,12 +2431,12 @@ declare class WebhookMethods {
2431
2431
  * const client = new SnowTransfer() // No token needed
2432
2432
  * client.webhook.executeSlackWebhook("webhook Id", "webhook token", slackdata)
2433
2433
  */
2434
- executeWebhookSlack(webhookId: string, token: string, data: any, options?: APITypes.RESTPostAPIWebhookWithTokenSlackQuery & {
2434
+ executeWebhookSlack(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenSlackQuery & {
2435
2435
  wait?: false;
2436
- }): Promise<APITypes.RESTPostAPIWebhookWithTokenSlackResult>;
2437
- executeWebhookSlack(webhookId: string, token: string, data: any, options?: APITypes.RESTPostAPIWebhookWithTokenSlackQuery & {
2436
+ }): Promise<RESTPostAPIWebhookWithTokenSlackResult>;
2437
+ executeWebhookSlack(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenSlackQuery & {
2438
2438
  wait: true;
2439
- }): Promise<APITypes.RESTPostAPIWebhookWithTokenSlackWaitResult>;
2439
+ }): Promise<RESTPostAPIWebhookWithTokenSlackWaitResult>;
2440
2440
  /**
2441
2441
  * Executes a github style Webhook
2442
2442
  * @param webhookId Id of the Webhook
@@ -2445,12 +2445,12 @@ declare class WebhookMethods {
2445
2445
  * @param options Options for executing the webhook
2446
2446
  * @returns Resolves the Promise on successful execution
2447
2447
  */
2448
- executeWebhookGitHub(webhookId: string, token: string, data: any, options?: APITypes.RESTPostAPIWebhookWithTokenGitHubQuery & {
2448
+ executeWebhookGitHub(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenGitHubQuery & {
2449
2449
  wait?: false;
2450
- }): Promise<APITypes.RESTPostAPIWebhookWithTokenGitHubResult>;
2451
- executeWebhookGitHub(webhookId: string, token: string, data: any, options?: APITypes.RESTPostAPIWebhookWithTokenGitHubQuery & {
2450
+ }): Promise<RESTPostAPIWebhookWithTokenGitHubResult>;
2451
+ executeWebhookGitHub(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenGitHubQuery & {
2452
2452
  wait: true;
2453
- }): Promise<APITypes.RESTPostAPIWebhookWithTokenGitHubWaitResult>;
2453
+ }): Promise<RESTPostAPIWebhookWithTokenGitHubWaitResult>;
2454
2454
  /**
2455
2455
  * Get a single message from a specific Webhook via Id
2456
2456
  * @param webhookId Id of the Webhook
@@ -2459,7 +2459,7 @@ declare class WebhookMethods {
2459
2459
  * @param threadId Id of the thread the message was sent in
2460
2460
  * @returns [discord message](https://discord.com/developers/docs/resources/channel#message-object) object
2461
2461
  */
2462
- getWebhookMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<APITypes.RESTGetAPIWebhookWithTokenMessageResult>;
2462
+ getWebhookMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<RESTGetAPIWebhookWithTokenMessageResult>;
2463
2463
  /**
2464
2464
  * Edit a message sent by a Webhook
2465
2465
  * @param webhookId Id of the Webhook
@@ -2472,13 +2472,13 @@ declare class WebhookMethods {
2472
2472
  * const client = new SnowTransfer()
2473
2473
  * const message = await client.webhook.editWebhookMessage("webhook Id", "webhook token", "message Id", { content: "New content" })
2474
2474
  */
2475
- editWebhookMessage(webhookId: string, token: string, messageId: string, data: APITypes.RESTPatchAPIWebhookWithTokenMessageJSONBody & {
2475
+ editWebhookMessage(webhookId: string, token: string, messageId: string, data: RESTPatchAPIWebhookWithTokenMessageJSONBody & {
2476
2476
  thread_id?: string;
2477
2477
  files?: Array<{
2478
2478
  name: string;
2479
2479
  file: Buffer;
2480
2480
  }>;
2481
- }): Promise<APITypes.RESTPatchAPIWebhookWithTokenMessageResult>;
2481
+ }): Promise<RESTPatchAPIWebhookWithTokenMessageResult>;
2482
2482
  /**
2483
2483
  * Delete a message sent by a Webhook
2484
2484
  * @param webhookId Id of the Webhook
@@ -2487,7 +2487,7 @@ declare class WebhookMethods {
2487
2487
  * @param threadId Id of the thread the message was sent in
2488
2488
  * @returns Resolves the Promise on successful execution
2489
2489
  */
2490
- deleteWebhookMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<APITypes.RESTDeleteAPIWebhookWithTokenMessageResult>;
2490
+ deleteWebhookMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<RESTDeleteAPIWebhookWithTokenMessageResult>;
2491
2491
  }
2492
2492
 
2493
2493
  declare namespace __Webhooks {
@@ -2521,7 +2521,7 @@ declare class InteractionMethods {
2521
2521
  * const client = new SnowTransfer("TOKEN")
2522
2522
  * const commands = await client.interaction.getApplicationCommands("appId")
2523
2523
  */
2524
- getApplicationCommands(appId: string, withLocalizations?: boolean): Promise<APITypes.RESTGetAPIApplicationCommandsResult>;
2524
+ getApplicationCommands(appId: string, withLocalizations?: boolean): Promise<RESTGetAPIApplicationCommandsResult>;
2525
2525
  /**
2526
2526
  * Create a new global command. New global commands will be available in all guilds after 1 hour
2527
2527
  * @param appId The Id of the application
@@ -2532,7 +2532,7 @@ declare class InteractionMethods {
2532
2532
  * const client = new SnowTransfer("TOKEN")
2533
2533
  * const command = await client.interaction.createApplicationCommand("appId", { name: "test", description: "testing 1, 2, 3" })
2534
2534
  */
2535
- createApplicationCommand(appId: string, data: APITypes.RESTPostAPIApplicationCommandsJSONBody): Promise<APITypes.RESTPostAPIApplicationCommandsResult>;
2535
+ createApplicationCommand(appId: string, data: RESTPostAPIApplicationCommandsJSONBody): Promise<RESTPostAPIApplicationCommandsResult>;
2536
2536
  /**
2537
2537
  * Fetch a global command for your application
2538
2538
  * @param appId The Id of the application
@@ -2543,7 +2543,7 @@ declare class InteractionMethods {
2543
2543
  * const client = new SnowTransfer("TOKEN")
2544
2544
  * const command = await client.interaction.getApplicationCommand("appId", "cmdId")
2545
2545
  */
2546
- getApplicationCommand(appId: string, cmdId: string): Promise<APITypes.RESTGetAPIApplicationCommandResult>;
2546
+ getApplicationCommand(appId: string, cmdId: string): Promise<RESTGetAPIApplicationCommandResult>;
2547
2547
  /**
2548
2548
  * Edit a global command. Updates will be available in all guilds after 1 hour
2549
2549
  * @param appId The Id of the application
@@ -2555,7 +2555,7 @@ declare class InteractionMethods {
2555
2555
  * const client = new SnowTransfer("TOKEN")
2556
2556
  * const command = await client.interaction.editApplicationCommand("appId", "cmdId", { name: "cool", description: "tells you how cool you are" })
2557
2557
  */
2558
- editApplicationCommand(appId: string, cmdId: string, data: APITypes.RESTPatchAPIApplicationCommandJSONBody): Promise<APITypes.RESTPatchAPIApplicationCommandResult>;
2558
+ editApplicationCommand(appId: string, cmdId: string, data: RESTPatchAPIApplicationCommandJSONBody): Promise<RESTPatchAPIApplicationCommandResult>;
2559
2559
  /**
2560
2560
  * Deletes a global command
2561
2561
  * @param appId The Id of the application
@@ -2578,7 +2578,7 @@ declare class InteractionMethods {
2578
2578
  * const client = new SnowTransfer("TOKEN")
2579
2579
  * const commands = await client.interaction.bulkOverwriteApplicationCommands("appId", [{ name: "test", description: "testing 1, 2, 3" }])
2580
2580
  */
2581
- bulkOverwriteApplicationCommands(appId: string, data: APITypes.RESTPutAPIApplicationCommandsJSONBody): Promise<APITypes.RESTPutAPIApplicationCommandsResult>;
2581
+ bulkOverwriteApplicationCommands(appId: string, data: RESTPutAPIApplicationCommandsJSONBody): Promise<RESTPutAPIApplicationCommandsResult>;
2582
2582
  /**
2583
2583
  * Fetch all of the guild commands for your application for a specific guild.
2584
2584
  * @param appId The Id of the application
@@ -2590,7 +2590,7 @@ declare class InteractionMethods {
2590
2590
  * const client = new SnowTransfer("TOKEN")
2591
2591
  * const commands = await client.interaction.getGuildCommands("appId", "guildId", true)
2592
2592
  */
2593
- getGuildApplicationCommands(appId: string, guildId: string, withLocalizations?: boolean): Promise<APITypes.RESTGetAPIApplicationGuildCommandsResult>;
2593
+ getGuildApplicationCommands(appId: string, guildId: string, withLocalizations?: boolean): Promise<RESTGetAPIApplicationGuildCommandsResult>;
2594
2594
  /**
2595
2595
  * Create a new guild command. New guild commands will be available in the guild immediately.
2596
2596
  * @param appId The Id of the application
@@ -2602,7 +2602,7 @@ declare class InteractionMethods {
2602
2602
  * const client = new SnowTransfer("TOKEN")
2603
2603
  * const command = await client.interaction.createGuildApplicationCommand("appId", "guildId", { name: "test", description: "testing 1, 2, 3" })
2604
2604
  */
2605
- createGuildApplicationCommand(appId: string, guildId: string, data: APITypes.RESTPostAPIApplicationGuildCommandsJSONBody): Promise<APITypes.RESTPostAPIApplicationGuildCommandsResult>;
2605
+ createGuildApplicationCommand(appId: string, guildId: string, data: RESTPostAPIApplicationGuildCommandsJSONBody): Promise<RESTPostAPIApplicationGuildCommandsResult>;
2606
2606
  /**
2607
2607
  * Fetch a guild command for your application
2608
2608
  * @param appId The Id of the application
@@ -2614,7 +2614,7 @@ declare class InteractionMethods {
2614
2614
  * const client = new SnowTransfer("TOKEN")
2615
2615
  * const command = await client.interaction.getGuildApplicationCommand("appId", "guildId", "cmdId")
2616
2616
  */
2617
- getGuildApplicationCommand(appId: string, guildId: string, cmdId: string): Promise<APITypes.RESTGetAPIApplicationGuildCommandResult>;
2617
+ getGuildApplicationCommand(appId: string, guildId: string, cmdId: string): Promise<RESTGetAPIApplicationGuildCommandResult>;
2618
2618
  /**
2619
2619
  * Edit a guild command. Updates for guild commands will be available immediately.
2620
2620
  * @param appId The Id of the application
@@ -2627,7 +2627,7 @@ declare class InteractionMethods {
2627
2627
  * const client = new SnowTransfer("TOKEN")
2628
2628
  * const command = await client.interaction.editGuildApplicationCommand("appId", "guildId", "cmdId", { name: "coolest", description: "tells you that you are the coolest" })
2629
2629
  */
2630
- editGuildApplicationCommand(appId: string, guildId: string, cmdId: string, data: APITypes.RESTPatchAPIApplicationGuildCommandJSONBody): Promise<APITypes.RESTPatchAPIApplicationGuildCommandResult>;
2630
+ editGuildApplicationCommand(appId: string, guildId: string, cmdId: string, data: RESTPatchAPIApplicationGuildCommandJSONBody): Promise<RESTPatchAPIApplicationGuildCommandResult>;
2631
2631
  /**
2632
2632
  * Delete a guild command
2633
2633
  * @param appId The Id of the application
@@ -2651,7 +2651,7 @@ declare class InteractionMethods {
2651
2651
  * const client = new SnowTransfer("TOKEN")
2652
2652
  * const commands = await client.interaction.bulkOverwriteGuildApplicationCommands("appId", "guildId", [{ name: "test", description: "testing 1, 2, 3" }])
2653
2653
  */
2654
- bulkOverwriteGuildApplicationCommands(appId: string, guildId: string, data: APITypes.RESTPutAPIApplicationGuildCommandsJSONBody): Promise<APITypes.RESTPutAPIApplicationGuildCommandsResult>;
2654
+ bulkOverwriteGuildApplicationCommands(appId: string, guildId: string, data: RESTPutAPIApplicationGuildCommandsJSONBody): Promise<RESTPutAPIApplicationGuildCommandsResult>;
2655
2655
  /**
2656
2656
  * Fetches command permissions for all or a specific command for your application in a guild
2657
2657
  * @param appId The Id of the application
@@ -2669,8 +2669,8 @@ declare class InteractionMethods {
2669
2669
  * const client = new SnowTransfer("TOKEN")
2670
2670
  * const permissions = await client.interaction.getGuildApplicationCommandPermissions("appId", "guildId", "cmdId")
2671
2671
  */
2672
- getGuildApplicationCommandPermissions(appId: string, guildId: string): Promise<Array<APITypes.RESTGetAPIApplicationCommandPermissionsResult>>;
2673
- getGuildApplicationCommandPermissions(appId: string, guildId: string, cmdId: string): Promise<APITypes.RESTGetAPIApplicationCommandPermissionsResult>;
2672
+ getGuildApplicationCommandPermissions(appId: string, guildId: string): Promise<Array<RESTGetAPIApplicationCommandPermissionsResult>>;
2673
+ getGuildApplicationCommandPermissions(appId: string, guildId: string, cmdId: string): Promise<RESTGetAPIApplicationCommandPermissionsResult>;
2674
2674
  /**
2675
2675
  * Edits command permissions for a specific command for your application in a guild. You can only add up to 10 permission overwrites for a command.
2676
2676
  * @param appId The Id of the application
@@ -2683,7 +2683,7 @@ declare class InteractionMethods {
2683
2683
  * const client = new SnowTransfer("TOKEN")
2684
2684
  * const permissions = await client.interaction.editGuildApplicationCommandPermissions("appId", "guildId", "cmdId", [{ type: 2, id: "userId", permission: true }])
2685
2685
  */
2686
- editGuildApplicationCommandPermissions(appId: string, guildId: string, cmdId: string, permissions: APITypes.RESTPutAPIApplicationCommandPermissionsJSONBody["permissions"]): Promise<APITypes.RESTPutAPIApplicationCommandPermissionsResult>;
2686
+ editGuildApplicationCommandPermissions(appId: string, guildId: string, cmdId: string, permissions: RESTPutAPIApplicationCommandPermissionsJSONBody["permissions"]): Promise<RESTPutAPIApplicationCommandPermissionsResult>;
2687
2687
  /**
2688
2688
  * Create a response to an Interaction
2689
2689
  *
@@ -2700,7 +2700,7 @@ declare class InteractionMethods {
2700
2700
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2701
2701
  * client.interaction.createInteractionResponse("interactionId", "token", { type: 4, data: { content: "Hello World" } })
2702
2702
  */
2703
- createInteractionResponse(interactionId: string, token: string, data: APITypes.RESTPostAPIInteractionCallbackJSONBody & {
2703
+ createInteractionResponse(interactionId: string, token: string, data: RESTPostAPIInteractionCallbackJSONBody & {
2704
2704
  files?: Array<{
2705
2705
  name: string;
2706
2706
  file: Buffer;
@@ -2716,7 +2716,7 @@ declare class InteractionMethods {
2716
2716
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2717
2717
  * const message = await client.interaction.getOriginalInteractionResponse("appId", "token")
2718
2718
  */
2719
- getOriginalInteractionResponse(appId: string, token: string): Promise<APITypes.RESTGetAPIInteractionOriginalResponseResult>;
2719
+ getOriginalInteractionResponse(appId: string, token: string): Promise<RESTGetAPIInteractionOriginalResponseResult>;
2720
2720
  /**
2721
2721
  * Edits the initial Interaction response
2722
2722
  * @param appId The Id of the application
@@ -2728,12 +2728,12 @@ declare class InteractionMethods {
2728
2728
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2729
2729
  * const message = await client.interaction.editOriginalInteractionResponse("appId", "token", { content: "The world said hello back" })
2730
2730
  */
2731
- editOriginalInteractionResponse(appId: string, token: string, data: APITypes.RESTPatchAPIInteractionOriginalResponseJSONBody & {
2731
+ editOriginalInteractionResponse(appId: string, token: string, data: RESTPatchAPIInteractionOriginalResponseJSONBody & {
2732
2732
  files?: Array<{
2733
2733
  name: string;
2734
2734
  file: Buffer;
2735
2735
  }>;
2736
- }): Promise<APITypes.RESTPatchAPIInteractionOriginalResponseResult>;
2736
+ }): Promise<RESTPatchAPIInteractionOriginalResponseResult>;
2737
2737
  /**
2738
2738
  * Deletes the initial Interaction response
2739
2739
  * @param appId The Id of the application
@@ -2744,7 +2744,7 @@ declare class InteractionMethods {
2744
2744
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2745
2745
  * client.interaction.deleteOriginalInteractionResponse("appId", "token")
2746
2746
  */
2747
- deleteOriginalInteractionResponse(appId: string, token: string): Promise<APITypes.RESTDeleteAPIInteractionOriginalResponseResult>;
2747
+ deleteOriginalInteractionResponse(appId: string, token: string): Promise<RESTDeleteAPIInteractionOriginalResponseResult>;
2748
2748
  /**
2749
2749
  * Create a followup message for an Interaction
2750
2750
  * @param appId The Id of the application
@@ -2756,12 +2756,12 @@ declare class InteractionMethods {
2756
2756
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2757
2757
  * const message = await client.interaction.createFollowupMessage("appId", "token", { content: "The pacer gram fitness test-" })
2758
2758
  */
2759
- createFollowupMessage(appId: string, token: string, data: APITypes.RESTPostAPIInteractionFollowupJSONBody & {
2759
+ createFollowupMessage(appId: string, token: string, data: RESTPostAPIInteractionFollowupJSONBody & {
2760
2760
  files?: Array<{
2761
2761
  name: string;
2762
2762
  file: Buffer;
2763
2763
  }>;
2764
- }): Promise<APITypes.RESTPostAPIInteractionFollowupResult>;
2764
+ }): Promise<RESTPostAPIInteractionFollowupResult>;
2765
2765
  /**
2766
2766
  * Get a followup message for an Interaction
2767
2767
  * @param appId The Id of the application
@@ -2773,7 +2773,7 @@ declare class InteractionMethods {
2773
2773
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2774
2774
  * const message = await client.interaction.getFollowupMessage("appId", "token", "messageId")
2775
2775
  */
2776
- getFollowupMessage(appId: string, token: string, messageId: string): Promise<APITypes.RESTGetAPIInteractionFollowupResult>;
2776
+ getFollowupMessage(appId: string, token: string, messageId: string): Promise<RESTGetAPIInteractionFollowupResult>;
2777
2777
  /**
2778
2778
  * Edits a followup message for an Interaction
2779
2779
  * @param appId The Id of the application
@@ -2786,12 +2786,12 @@ declare class InteractionMethods {
2786
2786
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2787
2787
  * const message = await client.interaction.editFollowupMessage("appId", "token", "messageId", { content: "-is a multistage aerobic capacity test" })
2788
2788
  */
2789
- editFollowupMessage(appId: string, token: string, messageId: string, data: APITypes.RESTPatchAPIInteractionFollowupJSONBody & {
2789
+ editFollowupMessage(appId: string, token: string, messageId: string, data: RESTPatchAPIInteractionFollowupJSONBody & {
2790
2790
  files?: Array<{
2791
2791
  name: string;
2792
2792
  file: Buffer;
2793
2793
  }>;
2794
- }): Promise<APITypes.RESTPatchAPIInteractionFollowupResult>;
2794
+ }): Promise<RESTPatchAPIInteractionFollowupResult>;
2795
2795
  /**
2796
2796
  * Deletes a followup message for an Interaction
2797
2797
  * @param appId The Id of the application
@@ -2803,7 +2803,7 @@ declare class InteractionMethods {
2803
2803
  * const client = new SnowTransfer() // This endpoint does not require a Bot token. The interaction token alone will suffice
2804
2804
  * client.interaction.deleteFollowupMessage("appId", "token", "messageId")
2805
2805
  */
2806
- deleteFollowupMessage(appId: string, token: string, messageId: string): Promise<APITypes.RESTDeleteAPIInteractionFollowupResult>;
2806
+ deleteFollowupMessage(appId: string, token: string, messageId: string): Promise<RESTDeleteAPIInteractionFollowupResult>;
2807
2807
  }
2808
2808
 
2809
2809
  /**
@@ -2831,7 +2831,7 @@ declare class InviteMethods {
2831
2831
  * const client = new SnowTransfer("TOKEN")
2832
2832
  * const invite = await client.invite.getInvite("inviteId", { with_counts: true })
2833
2833
  */
2834
- getInvite(inviteId: string, query?: APITypes.RESTGetAPIInviteQuery): Promise<APITypes.RESTGetAPIInviteResult>;
2834
+ getInvite(inviteId: string, query?: RESTGetAPIInviteQuery): Promise<RESTGetAPIInviteResult>;
2835
2835
  /**
2836
2836
  * Delete an invite
2837
2837
  * @param inviteId
@@ -2846,7 +2846,7 @@ declare class InviteMethods {
2846
2846
  * const client = new SnowTransfer("TOKEN")
2847
2847
  * const invite = await client.invite.deleteInvite("inviteId")
2848
2848
  */
2849
- deleteInvite(inviteId: string): Promise<APITypes.RESTDeleteAPIInviteResult>;
2849
+ deleteInvite(inviteId: string): Promise<RESTDeleteAPIInviteResult>;
2850
2850
  }
2851
2851
 
2852
2852
  /**
@@ -2879,9 +2879,9 @@ declare class StageInstanceMethods {
2879
2879
  * const client = new SnowTransfer("TOKEN")
2880
2880
  * const instance = await client.stageInstance.createStageInstance({ channel_id: "channel id", topic: "This My House" })
2881
2881
  */
2882
- createStageInstance(data: APITypes.RESTPostAPIStageInstanceJSONBody & {
2882
+ createStageInstance(data: RESTPostAPIStageInstanceJSONBody & {
2883
2883
  reason?: string;
2884
- }): Promise<APITypes.RESTPostAPIStageInstanceResult>;
2884
+ }): Promise<RESTPostAPIStageInstanceResult>;
2885
2885
  /**
2886
2886
  * Gets the stage instance assocuated to a stage channel if it exists
2887
2887
  * @param channelId Id of the stage channel
@@ -2891,7 +2891,7 @@ declare class StageInstanceMethods {
2891
2891
  * const client = new SnowTransfer("TOKEN")
2892
2892
  * const instance = await client.stageInstance.getStageInstance("channel id")
2893
2893
  */
2894
- getStageInstance(channelId: string): Promise<APITypes.RESTGetAPIStageInstanceResult>;
2894
+ getStageInstance(channelId: string): Promise<RESTGetAPIStageInstanceResult>;
2895
2895
  /**
2896
2896
  * Updates an existing stage instance
2897
2897
  * @param channelId Id of the stage channel
@@ -2908,9 +2908,9 @@ declare class StageInstanceMethods {
2908
2908
  * const client = new SnowTransfer("TOKEN")
2909
2909
  * const instance = await client.stageInstance.updateStageInstance("channel id", { topic: "This my city, this my town" })
2910
2910
  */
2911
- editStageInstance(channelId: string, data: APITypes.RESTPatchAPIStageInstanceJSONBody & {
2911
+ editStageInstance(channelId: string, data: RESTPatchAPIStageInstanceJSONBody & {
2912
2912
  reason?: string;
2913
- }): Promise<APITypes.RESTPatchAPIStageInstanceResult>;
2913
+ }): Promise<RESTPatchAPIStageInstanceResult>;
2914
2914
  /**
2915
2915
  * Delete an existing stage instance
2916
2916
  * @param channelId Id of the stage channel
@@ -2926,7 +2926,7 @@ declare class StageInstanceMethods {
2926
2926
  * const client = new SnowTransfer("TOKEN")
2927
2927
  * client.stageInstance.deleteStageInstance("channel id", "They already know who's house this is")
2928
2928
  */
2929
- deleteStageInstance(channelId: string, reason?: string): Promise<APITypes.RESTDeleteAPIStageInstanceResult>;
2929
+ deleteStageInstance(channelId: string, reason?: string): Promise<RESTDeleteAPIStageInstanceResult>;
2930
2930
  }
2931
2931
 
2932
2932
  /**
@@ -2956,7 +2956,7 @@ declare class UserMethods {
2956
2956
  * const client = new SnowTransfer("TOKEN")
2957
2957
  * const self = await client.user.getSelf()
2958
2958
  */
2959
- getSelf(): Promise<APITypes.RESTGetAPICurrentUserResult>;
2959
+ getSelf(): Promise<RESTGetAPICurrentUserResult>;
2960
2960
  /**
2961
2961
  * Get information about a user via Id
2962
2962
  * @param userId Id of the user
@@ -2966,7 +2966,7 @@ declare class UserMethods {
2966
2966
  * const client = new SnowTransfer("TOKEN")
2967
2967
  * const user = await client.user.getUser("userId")
2968
2968
  */
2969
- getUser(userId: string): Promise<APITypes.RESTGetAPIUserResult>;
2969
+ getUser(userId: string): Promise<RESTGetAPIUserResult>;
2970
2970
  /**
2971
2971
  * Update the current user
2972
2972
  * @param data The new data of the CurrentUser
@@ -2981,7 +2981,7 @@ declare class UserMethods {
2981
2981
  * \}
2982
2982
  * client.user.updateSelf(updateData)
2983
2983
  */
2984
- updateSelf(data: APITypes.RESTPatchAPICurrentUserJSONBody): Promise<APITypes.RESTPatchAPICurrentUserResult>;
2984
+ updateSelf(data: RESTPatchAPICurrentUserJSONBody): Promise<RESTPatchAPICurrentUserResult>;
2985
2985
  /**
2986
2986
  * Get guilds of the current user
2987
2987
  * @returns Array of [partial guild objects](https://discord.com/developers/docs/resources/guild#guild-object)
@@ -2990,7 +2990,7 @@ declare class UserMethods {
2990
2990
  * const client = new SnowTransfer("TOKEN")
2991
2991
  * const guilds = await client.user.getGuilds()
2992
2992
  */
2993
- getGuilds(query?: APITypes.RESTGetAPICurrentUserGuildsQuery): Promise<APITypes.RESTGetAPICurrentUserGuildsResult>;
2993
+ getGuilds(query?: RESTGetAPICurrentUserGuildsQuery): Promise<RESTGetAPICurrentUserGuildsResult>;
2994
2994
  /**
2995
2995
  * Leaves a guild
2996
2996
  * @param guildId Id of the guild
@@ -3000,7 +3000,7 @@ declare class UserMethods {
3000
3000
  * const client = new SnowTransfer("TOKEN")
3001
3001
  * client.user.leaveGuild("guildId")
3002
3002
  */
3003
- leaveGuild(guildId: string): Promise<APITypes.RESTDeleteAPICurrentUserGuildResult>;
3003
+ leaveGuild(guildId: string): Promise<RESTDeleteAPICurrentUserGuildResult>;
3004
3004
  /**
3005
3005
  * Create a direct message channel with another user
3006
3006
  *
@@ -3014,7 +3014,7 @@ declare class UserMethods {
3014
3014
  * const channel = await client.user.createDirectMessageChannel("other user id")
3015
3015
  * client.channel.createMessage(channel.id, "hi")
3016
3016
  */
3017
- createDirectMessageChannel(userId: string): Promise<APITypes.RESTPostAPICurrentUserCreateDMChannelResult>;
3017
+ createDirectMessageChannel(userId: string): Promise<RESTPostAPICurrentUserCreateDMChannelResult>;
3018
3018
  /**
3019
3019
  * Create a group direct message channel with other users
3020
3020
  *
@@ -3036,7 +3036,7 @@ declare class UserMethods {
3036
3036
  nicks?: {
3037
3037
  [userId: string]: string;
3038
3038
  };
3039
- }): Promise<APITypes.RESTPostAPICurrentUserCreateDMChannelResult>;
3039
+ }): Promise<RESTPostAPICurrentUserCreateDMChannelResult>;
3040
3040
  /**
3041
3041
  * Returns a list of connections for the current user
3042
3042
  * @returns A list of [connections](https://discord.com/developers/docs/resources/user#connection-object)
@@ -3050,7 +3050,7 @@ declare class UserMethods {
3050
3050
  * const client = new SnowTransfer("TOKEN")
3051
3051
  * const connections = await client.user.getConnections()
3052
3052
  */
3053
- getConnections(): Promise<APITypes.RESTGetAPICurrentUserConnectionsResult>;
3053
+ getConnections(): Promise<RESTGetAPICurrentUserConnectionsResult>;
3054
3054
  /**
3055
3055
  * Gets a role connection for the current user
3056
3056
  * @param appId Id of the application
@@ -3065,7 +3065,7 @@ declare class UserMethods {
3065
3065
  * const client = new SnowTransfer("TOKEN")
3066
3066
  * const connection = await client.user.getApplicationRoleConnection("app id")
3067
3067
  */
3068
- getApplicationRoleConnection(appId: string): Promise<APITypes.RESTGetAPICurrentUserApplicationRoleConnectionResult>;
3068
+ getApplicationRoleConnection(appId: string): Promise<RESTGetAPICurrentUserApplicationRoleConnectionResult>;
3069
3069
  /**
3070
3070
  * Updates a role connection for the current user
3071
3071
  * @param appId Id of the application
@@ -3080,7 +3080,7 @@ declare class UserMethods {
3080
3080
  * const client = new SnowTransfer("TOKEN")
3081
3081
  * const connection = await client.user.updateApplicationRoleConnection("app id", { platform_name: "some platform", platform_username: "Cool user 22" })
3082
3082
  */
3083
- updateApplicationRoleConnection(appId: string, data: APITypes.RESTPutAPICurrentUserApplicationRoleConnectionJSONBody): Promise<APITypes.RESTPutAPICurrentUserApplicationRoleConnectionResult>;
3083
+ updateApplicationRoleConnection(appId: string, data: RESTPutAPICurrentUserApplicationRoleConnectionJSONBody): Promise<RESTPutAPICurrentUserApplicationRoleConnectionResult>;
3084
3084
  }
3085
3085
 
3086
3086
  /**
@@ -3105,7 +3105,7 @@ declare class VoiceMethods {
3105
3105
  * const client = new SnowTransfer("TOKEN")
3106
3106
  * const regions = await client.voice.getVoiceRegions()
3107
3107
  */
3108
- getVoiceRegions(): Promise<APITypes.RESTGetAPIVoiceRegionsResult>;
3108
+ getVoiceRegions(): Promise<RESTGetAPIVoiceRegionsResult>;
3109
3109
  }
3110
3110
 
3111
3111
  declare const Constants: {