snowtransfer 0.18.0 → 0.18.1

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/Constants.d.ts +59 -0
  3. package/dist/Constants.js +123 -0
  4. package/dist/Endpoints.d.ts +120 -0
  5. package/dist/Endpoints.js +121 -0
  6. package/dist/RequestHandler.d.ts +258 -0
  7. package/dist/RequestHandler.js +629 -0
  8. package/dist/SnowTransfer.d.ts +70 -0
  9. package/dist/SnowTransfer.js +105 -0
  10. package/dist/StateMachine.d.ts +89 -0
  11. package/dist/StateMachine.js +208 -0
  12. package/dist/StateMachineGraph.d.ts +3 -0
  13. package/dist/StateMachineGraph.js +23 -0
  14. package/dist/Types.d.ts +76 -0
  15. package/dist/Types.js +2 -0
  16. package/dist/index.d.ts +25 -718
  17. package/dist/index.js +63 -44
  18. package/dist/methods/Assets.d.ts +290 -0
  19. package/dist/methods/Assets.js +326 -0
  20. package/dist/methods/AuditLog.d.ts +40 -0
  21. package/dist/methods/AuditLog.js +44 -0
  22. package/dist/methods/AutoModeration.d.ts +122 -0
  23. package/dist/methods/AutoModeration.js +135 -0
  24. package/dist/methods/Bot.d.ts +65 -0
  25. package/dist/methods/Bot.js +75 -0
  26. package/dist/methods/Channel.d.ts +866 -0
  27. package/dist/methods/Channel.js +982 -0
  28. package/dist/methods/Entitlements.d.ts +87 -0
  29. package/dist/methods/Entitlements.js +99 -0
  30. package/dist/methods/Guild.d.ts +722 -0
  31. package/dist/methods/Guild.js +785 -0
  32. package/dist/methods/GuildScheduledEvent.d.ts +138 -0
  33. package/dist/methods/GuildScheduledEvent.js +155 -0
  34. package/dist/methods/GuildTemplate.d.ts +110 -0
  35. package/dist/methods/GuildTemplate.js +124 -0
  36. package/dist/methods/Interaction.d.ts +339 -0
  37. package/dist/methods/Interaction.js +359 -0
  38. package/dist/methods/Invite.d.ts +81 -0
  39. package/dist/methods/Invite.js +107 -0
  40. package/dist/methods/Sku.d.ts +58 -0
  41. package/dist/methods/Sku.js +66 -0
  42. package/dist/methods/StageInstance.d.ts +86 -0
  43. package/dist/methods/StageInstance.js +97 -0
  44. package/dist/methods/User.d.ts +167 -0
  45. package/dist/methods/User.js +184 -0
  46. package/dist/methods/Voice.d.ts +44 -0
  47. package/dist/methods/Voice.js +52 -0
  48. package/dist/methods/Webhook.d.ts +265 -0
  49. package/dist/methods/Webhook.js +256 -0
  50. package/dist/tokenless.d.ts +19 -0
  51. package/dist/tokenless.js +31 -0
  52. package/package.json +9 -9
  53. package/dist/index.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,721 +1,28 @@
1
- import { EventEmitter } from 'node:events';
2
- import { APIAllowedMentions, RESTGetAPIAuditLogQuery, RESTGetAPIAuditLogResult, RESTGetAPIAutoModerationRulesResult, RESTGetAPIAutoModerationRuleResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTDeleteAPIAutoModerationRuleResult, RESTGetAPIGatewayResult, RESTGetAPIGatewayBotResult, APIApplication, RESTPatchCurrentApplicationJSONBody, RESTGetAPIChannelResult, RESTPatchAPIChannelJSONBody, RESTPatchAPIChannelResult, APIThreadChannel, RESTDeleteAPIChannelResult, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelMessageResult, RESTPostAPIChannelMessageJSONBody, RESTPostAPIChannelMessageResult, RESTPostAPIChannelMessageCrosspostResult, RESTPutAPIChannelMessageReactionResult, RESTDeleteAPIChannelMessageOwnReactionResult, RESTDeleteAPIChannelMessageUserReactionResult, RESTDeleteAPIChannelMessageReactionResult, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTDeleteAPIChannelAllMessageReactionsResult, RESTPatchAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageResult, RESTDeleteAPIChannelMessageResult, RESTPostAPIChannelMessagesBulkDeleteResult, RESTPutAPIChannelPermissionJSONBody, RESTPutAPIChannelPermissionResult, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelInviteJSONBody, RESTPostAPIChannelInviteResult, RESTDeleteAPIChannelPermissionResult, RESTPostAPIChannelFollowersResult, RESTPostAPIChannelTypingResult, RESTGetAPIChannelMessagesPinsQuery, RESTGetAPIChannelMessagesPinsResult, RESTPutAPIChannelMessagesPinResult, RESTDeleteAPIChannelMessagesPinResult, RESTPostAPIChannelMessagesThreadsJSONBody, RESTPostAPIChannelMessagesThreadsResult, RESTPostAPIChannelThreadsJSONBody, APITextBasedChannel, ChannelType, RESTPutAPIChannelThreadMembersResult, RESTDeleteAPIChannelThreadMembersResult, RESTGetAPIChannelThreadMemberResult, RESTGetAPIChannelThreadMembersQuery, RESTGetAPIChannelThreadMembersResult, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelThreadsArchivedPublicResult, RESTGetAPIChannelThreadsArchivedPrivateResult, RESTGetAPIChannelUsersThreadsArchivedResult, RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTPostAPIPollExpireResult, RESTPutAPIChannelVoiceStatusResult, APIGuildVoiceChannel, RESTGetAPIGuildEmojisResult, RESTGetAPIGuildEmojiResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTDeleteAPIGuildEmojiResult, RESTGetAPIStickerResult, RESTGetAPIGuildStickersResult, RESTGetAPIGuildStickerResult, RESTPostAPIGuildStickerFormDataBody, RESTPostAPIGuildStickerResult, RESTPatchAPIGuildStickerJSONBody, RESTPatchAPIGuildStickerResult, RESTDeleteAPIGuildStickerResult, RESTGetAPIApplicationEmojisResult, RESTGetAPIApplicationEmojiResult, RESTPostAPIApplicationEmojiJSONBody, RESTPostAPIApplicationEmojiResult, RESTPatchAPIApplicationEmojiJSONBody, RESTPatchAPIApplicationEmojiResult, RESTDeleteAPIApplicationEmojiResult, RESTGetAPIEntitlementsResult, RESTGetAPIEntitlementResult, RESTPostAPIEntitlementConsumeResult, RESTPostAPIEntitlementJSONBody, RESTPostAPIEntitlementResult, RESTDeleteAPIEntitlementResult, RESTGetAPIGuildResult, RESTGetAPIGuildPreviewResult, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildResult, 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, RESTGetAPIGuildMessagesSearchQuery, RESTGetAPIGuildMessagesSearchResult, RESTGetAPIGuildScheduledEventsResult, RESTPostAPIGuildScheduledEventJSONBody, RESTPostAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventResult, RESTPatchAPIGuildScheduledEventJSONBody, RESTPatchAPIGuildScheduledEventResult, RESTDeleteAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPITemplateResult, RESTGetAPIGuildTemplatesResult, RESTPostAPIGuildTemplatesJSONBody, RESTPostAPIGuildTemplatesResult, RESTPutAPIGuildTemplateSyncResult, RESTPatchAPIGuildTemplateJSONBody, RESTPatchAPIGuildTemplateResult, RESTDeleteAPIGuildTemplateResult, RESTPostAPIChannelWebhookJSONBody, RESTPostAPIChannelWebhookResult, RESTGetAPIChannelWebhooksResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIWebhookResult, RESTPatchAPIWebhookJSONBody, RESTPatchAPIWebhookResult, RESTPatchAPIWebhookWithTokenJSONBody, RESTPatchAPIWebhookWithTokenResult, RESTDeleteAPIWebhookResult, RESTDeleteAPIWebhookWithTokenResult, 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, RESTPostAPIInteractionCallbackResult, RESTGetAPIInteractionOriginalResponseResult, RESTPatchAPIInteractionOriginalResponseJSONBody, RESTPatchAPIInteractionOriginalResponseResult, RESTDeleteAPIInteractionOriginalResponseResult, RESTPostAPIInteractionFollowupJSONBody, RESTPostAPIInteractionFollowupResult, RESTGetAPIInteractionFollowupResult, RESTPatchAPIInteractionFollowupJSONBody, RESTPatchAPIInteractionFollowupResult, RESTDeleteAPIInteractionFollowupResult, RESTGetAPIInviteQuery, RESTGetAPIInviteResult, RESTDeleteAPIInviteResult, RESTPutAPIInviteTargetUsersResult, RESTGetAPIInviteTargetUsersJobStatusResult, RESTGetAPISKUsResult, RESTGetAPISKUSubscriptionsQuery, RESTGetAPISKUSubscriptionsResult, RESTGetAPISKUSubscriptionResult, RESTPostAPIStageInstanceJSONBody, RESTPostAPIStageInstanceResult, RESTGetAPIStageInstanceResult, RESTPatchAPIStageInstanceJSONBody, RESTPatchAPIStageInstanceResult, RESTDeleteAPIStageInstanceResult, RESTGetAPICurrentUserResult, RESTGetAPIUserResult, RESTPatchAPICurrentUserJSONBody, RESTPatchAPICurrentUserResult, RESTGetAPICurrentUserGuildsQuery, RESTGetAPICurrentUserGuildsResult, RESTDeleteAPICurrentUserGuildResult, RESTPostAPICurrentUserCreateDMChannelResult, RESTGetAPICurrentUserConnectionsResult, RESTGetAPICurrentUserApplicationRoleConnectionResult, RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, RESTPutAPICurrentUserApplicationRoleConnectionResult, RESTGetAPIVoiceRegionsResult, APIVoiceState, RESTPostOAuth2AccessTokenResult } from 'discord-api-types/v10';
3
- import { Readable } from 'node:stream';
4
-
5
- type HTTPMethod = "get" | "post" | "patch" | "head" | "put" | "delete" | "connect" | "options" | "trace";
6
- type SnowTransferOptions = {
7
- baseHost: string;
8
- allowed_mentions: APIAllowedMentions | undefined;
9
- bypassBuckets: boolean;
10
- retryRequests: boolean;
11
- retryLimit: number;
12
- };
13
- type RESTPostAPIAttachmentsRefreshURLsResult = {
14
- refreshed_urls: Array<{
15
- original: string;
16
- refreshed: string;
17
- }>;
18
- };
19
- type RatelimitInfo = {
20
- message: string;
21
- retry_after: number;
22
- global: boolean;
23
- code?: number;
24
- };
25
- type RequestEventData = {
26
- endpoint: string;
27
- method: string;
28
- dataType: "json" | "multipart";
29
- data: any;
30
- };
31
- type HandlerEvents = {
32
- request: [string, RequestEventData];
33
- done: [string, Response, RequestEventData];
34
- requestError: [string, Error];
35
- rateLimit: [{
36
- method: string;
37
- path: string;
38
- route: string;
39
- }];
40
- };
41
- type SMState = {
42
- onEnter: Array<(event: string) => unknown>;
43
- onLeave: Array<(event: string) => unknown>;
44
- transitions: Map<string, SMTransition>;
45
- };
46
- type SMTransition = {
47
- destination: string;
48
- onTransition?: Array<(...args: any[]) => unknown>;
49
- };
50
- type SMHistory = {
51
- from: string;
52
- event: string;
53
- to: string;
54
- time: number;
55
- };
56
-
57
- interface StateMachineEvents {
58
- enter: [string];
59
- }
60
- declare class StateMachine extends EventEmitter<StateMachineEvents> {
61
- currentStateName: string;
62
- readonly states: Map<string, SMState>;
63
- private editable;
64
- private readonly deferredTransitionCreators;
65
- private readonly history;
66
- constructor(currentStateName: string);
67
- guardEditable(): void;
68
- guardNotEditable(): void;
69
- defineState(name: string, cbs?: {
70
- onEnter: SMState["onEnter"];
71
- onLeave: SMState["onLeave"];
72
- transitions: Map<string, SMTransition>;
73
- }): this;
74
- defineTransition(from: string, event: string, to: string, cb?: (...args: any[]) => unknown): this;
75
- defineUniversalTransition(event: string, to: string, cb?: (...args: any[]) => unknown): this;
76
- freeze(): void;
77
- doTransition(event: string, ...args: any[]): void;
78
- doTransitionLater(event: string, delayMs: number, ...args: Array<any>): void;
79
- debug(): void;
80
- }
81
-
82
- declare global {
83
- var snowtransferDebugLogging: boolean;
84
- }
85
- declare class DiscordAPIError extends Error {
86
- method: string;
87
- path: string;
88
- code: number;
89
- httpStatus: number;
90
- request: RequestEventData;
91
- response: Response;
92
- constructor(error: {
93
- message?: string;
94
- code?: number;
95
- }, request: RequestEventData, response: Response);
96
- }
97
- interface Counter {
98
- id: string;
99
- hasReset(): boolean;
100
- canTake(): boolean;
101
- take(): boolean;
102
- timeUntilReset(): number;
103
- responseReceived(): void;
104
- applyCount(limit: number | null, remaining: number, resetAfter: number): void;
105
- }
106
- declare class IntervalCounter implements Counter {
107
- limit: number;
108
- reset: number;
109
- remaining: number;
110
- private firstRequestTime;
111
- private resetAt;
112
- readonly id: string;
113
- constructor(limit: number, reset: number);
114
- private checkReset;
115
- hasReset(): boolean;
116
- canTake(): boolean;
117
- take(): boolean;
118
- timeUntilReset(): number;
119
- responseReceived(): void;
120
- applyCount(limit: number | null, remaining: number, resetAfter: number): void;
121
- }
122
- declare class LeakyCounter implements Counter {
123
- limit: number;
124
- remaining: number;
125
- private resetAt;
126
- readonly id: string;
127
- constructor(limit: number);
128
- private checkReset;
129
- hasReset(): boolean;
130
- canTake(): boolean;
131
- take(): boolean;
132
- timeUntilReset(): number;
133
- responseReceived(): void;
134
- applyCount(limit: number | null, remaining: number, resetAfter: number): void;
135
- }
136
- declare class Bucket {
137
- readonly sm: StateMachine;
138
- readonly calls: Array<() => any>;
139
- readonly counters: Array<Counter>;
140
- private pauseRequested;
141
- constructor(counters: Array<Counter>);
142
- enqueue<T>(fn: (bkt: this) => Promise<T>): Promise<T>;
143
- pause(): void;
144
- resume(): void;
145
- dropQueue(): void;
146
- }
147
- declare class Ratelimiter {
148
- readonly buckets: Map<string, Bucket>;
149
- readonly globalBucket: Bucket;
150
- get global(): boolean;
151
- constructor();
152
- routify(url: string, method: string): string;
153
- queue<T>(fn: (bucket: Bucket) => Promise<T>, url: string, method: string): Promise<T>;
154
- setGlobal(ms: number): void;
155
- }
156
- type RequestHandlerOptions = {
157
- baseHost: string;
158
- baseURL: string;
159
- bypassBuckets: boolean;
160
- retryFailed: boolean;
161
- retryLimit: number;
162
- headers: {
163
- Authorization?: string;
164
- "User-Agent": string;
165
- [header: string]: string | undefined;
166
- };
167
- fetch: typeof fetch;
168
- };
169
- declare class RequestHandler extends EventEmitter<HandlerEvents> {
170
- ratelimiter: Ratelimiter;
171
- options: RequestHandlerOptions;
172
- latency: number;
173
- apiURL: string;
174
- constructor(ratelimiter: Ratelimiter, options?: {
175
- token?: string;
176
- } & Partial<Omit<RequestHandlerOptions, "headers">>);
177
- request(endpoint: string, params: Record<string, any> | undefined, method: HTTPMethod, dataType: "json", data?: any, extraHeaders?: Record<string, string>, retries?: number, rawResponse?: boolean): Promise<any>;
178
- request(endpoint: string, params: Record<string, any> | undefined, method: HTTPMethod, dataType: "multipart", data?: FormData, extraHeaders?: Record<string, string>, retries?: number, rawResponse?: boolean): Promise<any>;
179
- request(endpoint: string, params: Record<string, any> | undefined, method: HTTPMethod, dataType: "json" | "multipart", data?: any, extraHeaders?: Record<string, string>, retries?: number, rawResponse?: true): Promise<Response>;
180
- private _applyRatelimitHeaders;
181
- private _request;
182
- private _multiPartRequest;
183
- }
184
-
185
- declare class AuditLogMethods {
186
- readonly requestHandler: RequestHandler;
187
- constructor(requestHandler: RequestHandler);
188
- getAuditLog(guildId: string, options?: RESTGetAPIAuditLogQuery): Promise<RESTGetAPIAuditLogResult>;
189
- }
190
-
191
- declare class AutoModerationMethods {
192
- readonly requestHandler: RequestHandler;
193
- constructor(requestHandler: RequestHandler);
194
- getAutoModerationRules(guildId: string): Promise<RESTGetAPIAutoModerationRulesResult>;
195
- getAutoModerationRule(guildId: string, ruleId: string): Promise<RESTGetAPIAutoModerationRuleResult>;
196
- createAutoModerationRule(guildId: string, data: RESTPostAPIAutoModerationRuleJSONBody, reason?: string): Promise<RESTPostAPIAutoModerationRuleResult>;
197
- editAutoModerationRule(guildId: string, ruleId: string, data: RESTPatchAPIAutoModerationRuleJSONBody, reason?: string): Promise<RESTPatchAPIAutoModerationRuleResult>;
198
- deleteAutoModerationRule(guildId: string, ruleId: string, reason?: string): Promise<RESTDeleteAPIAutoModerationRuleResult>;
199
- }
200
-
201
- declare class BotMethods {
202
- readonly requestHandler: RequestHandler;
203
- constructor(requestHandler: RequestHandler);
204
- getGateway(): Promise<RESTGetAPIGatewayResult>;
205
- getGatewayBot(): Promise<RESTGetAPIGatewayBotResult>;
206
- getApplicationInfo(): Promise<APIApplication>;
207
- editApplicationInfo(data: RESTPatchCurrentApplicationJSONBody): Promise<APIApplication>;
208
- }
209
-
210
- declare class ChannelMethods {
211
- readonly requestHandler: RequestHandler;
212
- options: SnowTransferOptions;
213
- constructor(requestHandler: RequestHandler, options: SnowTransferOptions);
214
- getChannel(channelId: string): Promise<RESTGetAPIChannelResult>;
215
- editChannel(channelId: string, data: Omit<RESTPatchAPIChannelJSONBody, "archived" | "auto_archive_duration" | "locked" | "invitable">, reason?: string): Promise<Exclude<RESTPatchAPIChannelResult, APIThreadChannel>>;
216
- editChannel(channelId: string, data: Pick<RESTPatchAPIChannelJSONBody, "archived" | "auto_archive_duration" | "locked" | "name" | "rate_limit_per_user">, reason?: string): Promise<Extract<RESTPatchAPIChannelResult, APIThreadChannel>>;
217
- deleteChannel(channelId: string, reason?: string): Promise<RESTDeleteAPIChannelResult>;
218
- getChannelMessages(channelId: string, options?: RESTGetAPIChannelMessagesQuery): Promise<RESTGetAPIChannelMessagesResult>;
219
- getChannelMessage(channelId: string, messageId: string): Promise<RESTGetAPIChannelMessageResult>;
220
- createMessage(channelId: string, data: string | RESTPostAPIChannelMessageJSONBody & {
221
- files?: Array<{
222
- name: string;
223
- file: Buffer | Readable | ReadableStream;
224
- }>;
225
- }): Promise<RESTPostAPIChannelMessageResult>;
226
- createVoiceMessage(channelId: string, data: Buffer, audioDurationSeconds: number, waveform?: string): Promise<RESTPostAPIChannelMessageResult>;
227
- crosspostMessage(channelId: string, messageId: string): Promise<RESTPostAPIChannelMessageCrosspostResult>;
228
- createReaction(channelId: string, messageId: string, emoji: string): Promise<RESTPutAPIChannelMessageReactionResult>;
229
- deleteReactionSelf(channelId: string, messageId: string, emoji: string): Promise<RESTDeleteAPIChannelMessageOwnReactionResult>;
230
- deleteReaction(channelId: string, messageId: string, emoji: string, userId?: string): Promise<RESTDeleteAPIChannelMessageUserReactionResult | RESTDeleteAPIChannelMessageReactionResult>;
231
- getReactions(channelId: string, messageId: string, emoji: string, options?: RESTGetAPIChannelMessageReactionUsersQuery): Promise<RESTGetAPIChannelMessageReactionUsersResult>;
232
- deleteAllReactions(channelId: string, messageId: string): Promise<RESTDeleteAPIChannelAllMessageReactionsResult>;
233
- editMessage(channelId: string, messageId: string, data: string | RESTPatchAPIChannelMessageJSONBody & {
234
- files?: Array<{
235
- name: string;
236
- file: Buffer | Readable | ReadableStream;
237
- }>;
238
- }): Promise<RESTPatchAPIChannelMessageResult>;
239
- deleteMessage(channelId: string, messageId: string, reason?: string): Promise<RESTDeleteAPIChannelMessageResult>;
240
- deleteMessages(channelId: string, messages: Array<string>, reason?: string): Promise<RESTPostAPIChannelMessagesBulkDeleteResult>;
241
- editChannelPermission(channelId: string, permissionId: string, data: RESTPutAPIChannelPermissionJSONBody, reason?: string): Promise<RESTPutAPIChannelPermissionResult>;
242
- getChannelInvites(channelId: string): Promise<RESTGetAPIChannelInvitesResult>;
243
- createChannelInvite(channelId: string, data?: RESTPostAPIChannelInviteJSONBody & {
244
- target_users?: Array<string>;
245
- role_ids?: Array<string>;
246
- }, reason?: string): Promise<RESTPostAPIChannelInviteResult>;
247
- deleteChannelPermission(channelId: string, permissionId: string, reason?: string): Promise<RESTDeleteAPIChannelPermissionResult>;
248
- followAnnouncementChannel(channelId: string, webhookChannelId: string, reason?: string): Promise<RESTPostAPIChannelFollowersResult>;
249
- startChannelTyping(channelId: string): Promise<RESTPostAPIChannelTypingResult>;
250
- getChannelPinnedMessages(channelId: string, options?: RESTGetAPIChannelMessagesPinsQuery): Promise<RESTGetAPIChannelMessagesPinsResult>;
251
- createChannelPinnedMessage(channelId: string, messageId: string, reason?: string): Promise<RESTPutAPIChannelMessagesPinResult>;
252
- deleteChannelPinnedMessage(channelId: string, messageId: string, reason?: string): Promise<RESTDeleteAPIChannelMessagesPinResult>;
253
- createThreadWithMessage(channelId: string, messageId: string, data: RESTPostAPIChannelMessagesThreadsJSONBody, reason?: string): Promise<RESTPostAPIChannelMessagesThreadsResult>;
254
- createThreadWithoutMessage(channelId: string, data: Omit<RESTPostAPIChannelThreadsJSONBody, "type"> & {
255
- type: 10;
256
- }, reason?: string): Promise<APITextBasedChannel<ChannelType.AnnouncementThread>>;
257
- createThreadWithoutMessage(channelId: string, data: Omit<RESTPostAPIChannelThreadsJSONBody, "type"> & {
258
- type: 11;
259
- }, reason?: string): Promise<APITextBasedChannel<ChannelType.PublicThread>>;
260
- createThreadWithoutMessage(channelId: string, data: Omit<RESTPostAPIChannelThreadsJSONBody, "type"> & {
261
- type: 12;
262
- }, reason?: string): Promise<APITextBasedChannel<ChannelType.PrivateThread>>;
263
- joinThread(threadId: string): Promise<RESTPutAPIChannelThreadMembersResult>;
264
- joinThreadMember(threadId: string, userId: string): Promise<RESTPutAPIChannelThreadMembersResult>;
265
- leaveThread(threadId: string): Promise<RESTDeleteAPIChannelThreadMembersResult>;
266
- deleteThreadMember(threadId: string, userId: string): Promise<RESTDeleteAPIChannelThreadMembersResult>;
267
- getThreadMember(threadId: string, userId: string, withMember?: boolean): Promise<RESTGetAPIChannelThreadMemberResult>;
268
- getThreadMembers(channelId: string, options?: RESTGetAPIChannelThreadMembersQuery): Promise<RESTGetAPIChannelThreadMembersResult>;
269
- getChannelArchivedPublicThreads(channelId: string, options?: RESTGetAPIChannelThreadsArchivedQuery): Promise<RESTGetAPIChannelThreadsArchivedPublicResult>;
270
- getChannelArchivedPrivateThreads(channelId: string, options?: RESTGetAPIChannelThreadsArchivedQuery): Promise<RESTGetAPIChannelThreadsArchivedPrivateResult>;
271
- getChannelArchivedPrivateThreadsUser(channelId: string, options?: RESTGetAPIChannelThreadsArchivedQuery): Promise<RESTGetAPIChannelUsersThreadsArchivedResult>;
272
- refreshAttachmentURLs(attachments: string | Array<string>): Promise<RESTPostAPIAttachmentsRefreshURLsResult>;
273
- getPollAnswerVoters(channelId: string, messageId: string, answerId: string, options?: RESTGetAPIPollAnswerVotersQuery): Promise<RESTGetAPIPollAnswerVotersResult>;
274
- endPoll(channelId: string, messageId: string): Promise<RESTPostAPIPollExpireResult>;
275
- setVoiceChannelStatus(channelId: string, status: string, reason?: string): Promise<RESTPutAPIChannelVoiceStatusResult>;
276
- setVoiceChannelHangout(channelId: string, imageUrl: string, reason?: string): Promise<APIGuildVoiceChannel>;
277
- }
278
-
279
- declare class AssetsMethods {
280
- readonly requestHandler: RequestHandler;
281
- constructor(requestHandler: RequestHandler);
282
- getGuildEmojis(guildId: string): Promise<RESTGetAPIGuildEmojisResult>;
283
- getGuildEmoji(guildId: string, emojiId: string): Promise<RESTGetAPIGuildEmojiResult>;
284
- createGuildEmoji(guildId: string, data: RESTPostAPIGuildEmojiJSONBody, reason?: string): Promise<RESTPostAPIGuildEmojiResult>;
285
- editGuildEmoji(guildId: string, emojiId: string, data: RESTPatchAPIGuildEmojiJSONBody, reason?: string): Promise<RESTPatchAPIGuildEmojiResult>;
286
- deleteGuildEmoji(guildId: string, emojiId: string, reason?: string): Promise<RESTDeleteAPIGuildEmojiResult>;
287
- getSticker(stickerId: string): Promise<RESTGetAPIStickerResult>;
288
- getGuildStickers(guildId: string): Promise<RESTGetAPIGuildStickersResult>;
289
- getGuildSticker(guildId: string, stickerId: string): Promise<RESTGetAPIGuildStickerResult>;
290
- createGuildSticker(guildId: string, data: RESTPostAPIGuildStickerFormDataBody & {
291
- file: Buffer | Blob | File | Readable | ReadableStream;
292
- }, reason?: string): Promise<RESTPostAPIGuildStickerResult>;
293
- editGuildSticker(guildId: string, stickerId: string, data: RESTPatchAPIGuildStickerJSONBody, reason?: string): Promise<RESTPatchAPIGuildStickerResult>;
294
- deleteGuildSticker(guildId: string, stickerId: string, reason?: string): Promise<RESTDeleteAPIGuildStickerResult>;
295
- getAppEmojis(appId: string): Promise<RESTGetAPIApplicationEmojisResult>;
296
- getAppEmoji(appId: string, emojiId: string): Promise<RESTGetAPIApplicationEmojiResult>;
297
- createAppEmoji(appId: string, data: RESTPostAPIApplicationEmojiJSONBody): Promise<RESTPostAPIApplicationEmojiResult>;
298
- editAppEmoji(appId: string, emojiId: string, data: RESTPatchAPIApplicationEmojiJSONBody): Promise<RESTPatchAPIApplicationEmojiResult>;
299
- deleteAppEmoji(appId: string, emojiId: string): Promise<RESTDeleteAPIApplicationEmojiResult>;
300
- }
301
-
302
- declare class EntitlementMethods {
303
- readonly requestHandler: RequestHandler;
304
- constructor(requestHandler: RequestHandler);
305
- getEntitlements(appId: string): Promise<RESTGetAPIEntitlementsResult>;
306
- getEntitlement(appId: string, entitlementId: string): Promise<RESTGetAPIEntitlementResult>;
307
- consumeEntitlement(appId: string, entitlementId: string): Promise<RESTPostAPIEntitlementConsumeResult>;
308
- createTestEntitlement(appId: string, data: RESTPostAPIEntitlementJSONBody): Promise<RESTPostAPIEntitlementResult>;
309
- deleteTestEntitlement(appId: string, entitlementId: string): Promise<RESTDeleteAPIEntitlementResult>;
310
- }
311
-
312
- declare class GuildMethods {
313
- readonly requestHandler: RequestHandler;
314
- constructor(requestHandler: RequestHandler);
315
- getGuild(guildId: string, withCounts?: boolean): Promise<RESTGetAPIGuildResult>;
316
- getGuildPreview(guildId: string): Promise<RESTGetAPIGuildPreviewResult>;
317
- editGuild(guildId: string, data: RESTPatchAPIGuildJSONBody, reason?: string): Promise<RESTPatchAPIGuildResult>;
318
- getGuildChannels(guildId: string): Promise<RESTGetAPIGuildChannelsResult>;
319
- createGuildChannel(guildId: string, data: RESTPostAPIGuildChannelJSONBody, reason?: string): Promise<RESTPostAPIGuildChannelResult>;
320
- editChannelPositions(guildId: string, data: RESTPatchAPIGuildChannelPositionsJSONBody, reason?: string): Promise<RESTPatchAPIGuildChannelPositionsResult>;
321
- listActiveThreads(guildId: string): Promise<RESTGetAPIGuildThreadsResult>;
322
- getGuildMember(guildId: string, memberId: string): Promise<RESTGetAPIGuildMemberResult>;
323
- getGuildMembers(guildId: string, options?: RESTGetAPIGuildMembersQuery): Promise<RESTGetAPIGuildMembersResult>;
324
- searchGuildMembers(guildId: string, options: RESTGetAPIGuildMembersSearchQuery): Promise<RESTGetAPIGuildMembersSearchResult>;
325
- addGuildMember(guildId: string, memberId: string, data: RESTPutAPIGuildMemberJSONBody): Promise<RESTPutAPIGuildMemberResult>;
326
- editGuildMember(guildId: string, memberId: string, data: RESTPatchAPIGuildMemberJSONBody, reason?: string): Promise<RESTPatchAPIGuildMemberResult>;
327
- editSelf(guildId: string, data: RESTPatchAPICurrentGuildMemberJSONBody, reason?: string): Promise<APIGuildMember>;
328
- addGuildMemberRole(guildId: string, memberId: string, roleId: string, reason?: string): Promise<RESTPutAPIGuildMemberRoleResult>;
329
- deleteGuildMemberRole(guildId: string, memberId: string, roleId: string, reason?: string): Promise<RESTDeleteAPIGuildMemberRoleResult>;
330
- deleteGuildMember(guildId: string, memberId: string, reason?: string): Promise<RESTDeleteAPIGuildMemberResult>;
331
- getGuildBans(guildId: string, options?: RESTGetAPIGuildBansQuery): Promise<RESTGetAPIGuildBansResult>;
332
- getGuildBan(guildId: string, memberId: string): Promise<RESTGetAPIGuildBanResult>;
333
- createGuildBan(guildId: string, memberId: string, data?: RESTPutAPIGuildBanJSONBody, reason?: string): Promise<RESTPutAPIGuildBanResult>;
334
- deleteGuildBan(guildId: string, memberId: string, reason?: string): Promise<RESTDeleteAPIGuildBanResult>;
335
- getGuildRoles(guildId: string): Promise<RESTGetAPIGuildRolesResult>;
336
- createGuildRole(guildId: string, data?: RESTPostAPIGuildRoleJSONBody, reason?: string): Promise<RESTPostAPIGuildRoleResult>;
337
- editGuildRolePositions(guildId: string, data: RESTPatchAPIGuildRolePositionsJSONBody, reason?: string): Promise<RESTPatchAPIGuildRolePositionsResult>;
338
- editGuildRole(guildId: string, roleId: string, data: RESTPatchAPIGuildRoleJSONBody, reason?: string): Promise<RESTPatchAPIGuildRoleResult>;
339
- deleteGuildRole(guildId: string, roleId: string, reason?: string): Promise<RESTDeleteAPIGuildRoleResult>;
340
- getGuildPruneCount(guildId: string, options?: RESTGetAPIGuildPruneCountQuery): Promise<RESTGetAPIGuildPruneCountResult>;
341
- startGuildPrune(guildId: string, data: RESTPostAPIGuildPruneJSONBody & {
342
- compute_prune_count: true;
343
- }, reason?: string): Promise<RESTPostAPIGuildPruneResult & {
344
- pruned: number;
345
- }>;
346
- startGuildPrune(guildId: string, data: RESTPostAPIGuildPruneJSONBody & {
347
- compute_prune_count: false;
348
- }, reason?: string): Promise<RESTPostAPIGuildPruneResult & {
349
- pruned: null;
350
- }>;
351
- getGuildVoiceRegions(guildId: string): Promise<RESTGetAPIGuildVoiceRegionsResult>;
352
- getGuildInvites(guildId: string): Promise<RESTGetAPIGuildInvitesResult>;
353
- getGuildIntegrations(guildId: string): Promise<RESTGetAPIGuildIntegrationsResult>;
354
- deleteGuildIntegration(guildId: string, integrationId: string, reason?: string): Promise<RESTDeleteAPIGuildIntegrationResult>;
355
- getGuildWidgetSettings(guildId: string): Promise<RESTGetAPIGuildWidgetSettingsResult>;
356
- editGuildWidgetSettings(guildId: string, data: Partial<RESTPatchAPIGuildWidgetSettingsJSONBody>, reason?: string): Promise<RESTPatchAPIGuildWidgetSettingsResult>;
357
- getGuildWidget(guildId: string): Promise<APIGuildWidget>;
358
- getGuildVanityURL(guildId: string): Promise<RESTGetAPIGuildVanityUrlResult>;
359
- getGuildWelcomeScreen(guildId: string): Promise<RESTGetAPIGuildWelcomeScreenResult>;
360
- editGuildWelcomeScreen(guildId: string, data: RESTPatchAPIGuildWelcomeScreenJSONBody, reason?: string): Promise<RESTPatchAPIGuildWelcomeScreenResult>;
361
- editCurrentUserVoiceState(guildId: string, data: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody): Promise<RESTPatchAPIGuildVoiceStateCurrentMemberResult>;
362
- editUserVoiceState(guildId: string, userId: string, data: RESTPatchAPIGuildVoiceStateUserJSONBody): Promise<RESTPatchAPIGuildVoiceStateUserResult>;
363
- searchGuildMessages(guildId: string, options?: RESTGetAPIGuildMessagesSearchQuery): Promise<RESTGetAPIGuildMessagesSearchResult>;
364
- }
365
-
366
- declare class GuildScheduledEventMethods {
367
- readonly requestHandler: RequestHandler;
368
- constructor(requestHandler: RequestHandler);
369
- listGuildScheduledEvents(guildId: string, withCounts?: boolean): Promise<RESTGetAPIGuildScheduledEventsResult>;
370
- createGuildScheduledEvent(guildId: string, data: RESTPostAPIGuildScheduledEventJSONBody, reason?: string): Promise<RESTPostAPIGuildScheduledEventResult>;
371
- getGuildScheduledEvent(guildId: string, eventId: string, withCounts?: boolean): Promise<RESTGetAPIGuildScheduledEventResult>;
372
- editGuildScheduledEvent(guildId: string, eventId: string, data: RESTPatchAPIGuildScheduledEventJSONBody, reason?: string): Promise<RESTPatchAPIGuildScheduledEventResult>;
373
- deleteGuildScheduledEvent(guildId: string, eventId: string): Promise<RESTDeleteAPIGuildScheduledEventResult>;
374
- getGuildScheduledEventUsers(guildId: string, eventId: string, options?: RESTGetAPIGuildScheduledEventUsersQuery): Promise<RESTGetAPIGuildScheduledEventUsersResult>;
375
- }
376
-
377
- declare class GuildTemplateMethods {
378
- readonly requestHandler: RequestHandler;
379
- constructor(requestHandler: RequestHandler);
380
- getGuildTemplate(code: string): Promise<RESTGetAPITemplateResult>;
381
- getGuildTemplates(guildId: string): Promise<RESTGetAPIGuildTemplatesResult>;
382
- createGuildTemplate(guildId: string, data: RESTPostAPIGuildTemplatesJSONBody): Promise<RESTPostAPIGuildTemplatesResult>;
383
- syncGuildTemplate(guildId: string, code: string): Promise<RESTPutAPIGuildTemplateSyncResult>;
384
- editGuildTemplate(guildId: string, code: string, data: RESTPatchAPIGuildTemplateJSONBody): Promise<RESTPatchAPIGuildTemplateResult>;
385
- deleteGuildTemplate(guildId: string, code: string): Promise<RESTDeleteAPIGuildTemplateResult>;
386
- }
387
-
388
- declare class WebhookMethods {
389
- readonly requestHandler: RequestHandler;
390
- options: SnowTransferOptions;
391
- constructor(requestHandler: RequestHandler, options: SnowTransferOptions);
392
- createWebhook(channelId: string, data: RESTPostAPIChannelWebhookJSONBody, reason?: string): Promise<RESTPostAPIChannelWebhookResult>;
393
- getChannelWebhooks(channelId: string): Promise<RESTGetAPIChannelWebhooksResult>;
394
- getGuildWebhooks(guildId: string): Promise<RESTGetAPIGuildWebhooksResult>;
395
- getWebhook(webhookId: string, token?: string): Promise<RESTGetAPIWebhookResult>;
396
- editWebhook(webhookId: string, data: RESTPatchAPIWebhookJSONBody, reason?: string): Promise<RESTPatchAPIWebhookResult>;
397
- editWebhookToken(webhookId: string, token: string, data: RESTPatchAPIWebhookWithTokenJSONBody, reason?: string): Promise<RESTPatchAPIWebhookWithTokenResult>;
398
- deleteWebhook(webhookId: string, reason?: string): Promise<RESTDeleteAPIWebhookResult>;
399
- deleteWebhookToken(webhookId: string, token: string, reason?: string): Promise<RESTDeleteAPIWebhookWithTokenResult>;
400
- executeWebhook(webhookId: string, token: string, data: RESTPostAPIWebhookWithTokenJSONBody & {
401
- files?: Array<{
402
- name: string;
403
- file: Buffer | Readable | ReadableStream;
404
- }>;
405
- }, options?: RESTPostAPIWebhookWithTokenQuery & {
406
- wait?: false;
407
- }): Promise<RESTPostAPIWebhookWithTokenResult>;
408
- executeWebhook(webhookId: string, token: string, data: RESTPostAPIWebhookWithTokenJSONBody & {
409
- files?: Array<{
410
- name: string;
411
- file: Buffer | Readable | ReadableStream;
412
- }>;
413
- }, options: RESTPostAPIWebhookWithTokenQuery & {
414
- wait: true;
415
- }): Promise<RESTPostAPIWebhookWithTokenWaitResult>;
416
- executeWebhookSlack(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenSlackQuery & {
417
- wait?: false;
418
- }): Promise<RESTPostAPIWebhookWithTokenSlackResult>;
419
- executeWebhookSlack(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenSlackQuery & {
420
- wait: true;
421
- }): Promise<RESTPostAPIWebhookWithTokenSlackWaitResult>;
422
- executeWebhookGitHub(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenGitHubQuery & {
423
- wait?: false;
424
- }): Promise<RESTPostAPIWebhookWithTokenGitHubResult>;
425
- executeWebhookGitHub(webhookId: string, token: string, data: any, options?: RESTPostAPIWebhookWithTokenGitHubQuery & {
426
- wait: true;
427
- }): Promise<RESTPostAPIWebhookWithTokenGitHubWaitResult>;
428
- getWebhookMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<RESTGetAPIWebhookWithTokenMessageResult>;
429
- editWebhookMessage(webhookId: string, token: string, messageId: string, data: RESTPatchAPIWebhookWithTokenMessageJSONBody & {
430
- thread_id?: string;
431
- files?: Array<{
432
- name: string;
433
- file: Buffer | Readable | ReadableStream;
434
- }>;
435
- }): Promise<RESTPatchAPIWebhookWithTokenMessageResult>;
436
- deleteWebhookMessage(webhookId: string, token: string, messageId: string, threadId?: string): Promise<RESTDeleteAPIWebhookWithTokenMessageResult>;
437
- }
438
-
439
- declare class InteractionMethods {
440
- readonly requestHandler: RequestHandler;
441
- readonly webhooks: WebhookMethods;
442
- options: SnowTransferOptions;
443
- constructor(requestHandler: RequestHandler, webhooks: WebhookMethods, options: SnowTransferOptions);
444
- getApplicationCommands(appId: string, withLocalizations?: boolean): Promise<RESTGetAPIApplicationCommandsResult>;
445
- createApplicationCommand(appId: string, data: RESTPostAPIApplicationCommandsJSONBody): Promise<RESTPostAPIApplicationCommandsResult>;
446
- getApplicationCommand(appId: string, cmdId: string): Promise<RESTGetAPIApplicationCommandResult>;
447
- editApplicationCommand(appId: string, cmdId: string, data: RESTPatchAPIApplicationCommandJSONBody): Promise<RESTPatchAPIApplicationCommandResult>;
448
- deleteApplicationCommand(appId: string, cmdId: string): Promise<void>;
449
- editApplicationCommands(appId: string, data: RESTPutAPIApplicationCommandsJSONBody): Promise<RESTPutAPIApplicationCommandsResult>;
450
- getGuildApplicationCommands(appId: string, guildId: string, withLocalizations?: boolean): Promise<RESTGetAPIApplicationGuildCommandsResult>;
451
- createGuildApplicationCommand(appId: string, guildId: string, data: RESTPostAPIApplicationGuildCommandsJSONBody): Promise<RESTPostAPIApplicationGuildCommandsResult>;
452
- getGuildApplicationCommand(appId: string, guildId: string, cmdId: string): Promise<RESTGetAPIApplicationGuildCommandResult>;
453
- editGuildApplicationCommand(appId: string, guildId: string, cmdId: string, data: RESTPatchAPIApplicationGuildCommandJSONBody): Promise<RESTPatchAPIApplicationGuildCommandResult>;
454
- deleteGuildApplicationCommand(appId: string, guildId: string, cmdId: string): Promise<void>;
455
- editGuildApplicationCommands(appId: string, guildId: string, data: RESTPutAPIApplicationGuildCommandsJSONBody): Promise<RESTPutAPIApplicationGuildCommandsResult>;
456
- getGuildApplicationCommandPermissions(appId: string, guildId: string): Promise<Array<RESTGetAPIApplicationCommandPermissionsResult>>;
457
- getGuildApplicationCommandPermissions(appId: string, guildId: string, cmdId: string): Promise<RESTGetAPIApplicationCommandPermissionsResult>;
458
- editGuildApplicationCommandPermissions(appId: string, guildId: string, cmdId: string, permissions: RESTPutAPIApplicationCommandPermissionsJSONBody["permissions"]): Promise<RESTPutAPIApplicationCommandPermissionsResult>;
459
- createInteractionResponse(interactionId: string, token: string, data: RESTPostAPIInteractionCallbackJSONBody & {
460
- files?: Array<{
461
- name: string;
462
- file: Buffer | Readable | ReadableStream;
463
- }>;
464
- }): Promise<RESTPostAPIInteractionCallbackResult>;
465
- getOriginalInteractionResponse(appId: string, token: string): Promise<RESTGetAPIInteractionOriginalResponseResult>;
466
- editOriginalInteractionResponse(appId: string, token: string, data: RESTPatchAPIInteractionOriginalResponseJSONBody & {
467
- files?: Array<{
468
- name: string;
469
- file: Buffer | Readable | ReadableStream;
470
- }>;
471
- }): Promise<RESTPatchAPIInteractionOriginalResponseResult>;
472
- deleteOriginalInteractionResponse(appId: string, token: string): Promise<RESTDeleteAPIInteractionOriginalResponseResult>;
473
- createFollowupMessage(appId: string, token: string, data: RESTPostAPIInteractionFollowupJSONBody & {
474
- files?: Array<{
475
- name: string;
476
- file: Buffer | Readable | ReadableStream;
477
- }>;
478
- }): Promise<RESTPostAPIInteractionFollowupResult>;
479
- getFollowupMessage(appId: string, token: string, messageId: string): Promise<RESTGetAPIInteractionFollowupResult>;
480
- editFollowupMessage(appId: string, token: string, messageId: string, data: RESTPatchAPIInteractionFollowupJSONBody & {
481
- files?: Array<{
482
- name: string;
483
- file: Buffer | Readable | ReadableStream;
484
- }>;
485
- }): Promise<RESTPatchAPIInteractionFollowupResult>;
486
- deleteFollowupMessage(appId: string, token: string, messageId: string): Promise<RESTDeleteAPIInteractionFollowupResult>;
487
- }
488
-
489
- declare class InviteMethods {
490
- readonly requestHandler: RequestHandler;
491
- constructor(requestHandler: RequestHandler);
492
- getInvite(inviteId: string, options?: RESTGetAPIInviteQuery): Promise<RESTGetAPIInviteResult>;
493
- deleteInvite(inviteId: string, reason?: string): Promise<RESTDeleteAPIInviteResult>;
494
- getInviteTargetUsers(inviteId: string): Promise<Array<string>>;
495
- editInviteTargetUsers(inviteId: string, userIds: Array<string>): Promise<RESTPutAPIInviteTargetUsersResult>;
496
- getInviteTargetUsersJobStatus(inviteId: string): Promise<RESTGetAPIInviteTargetUsersJobStatusResult>;
497
- }
498
-
499
- declare class SkuMethods {
500
- readonly requestHandler: RequestHandler;
501
- constructor(requestHandler: RequestHandler);
502
- getSkus(appId: string): Promise<RESTGetAPISKUsResult>;
503
- getSubscriptions(skuId: string, options?: RESTGetAPISKUSubscriptionsQuery): Promise<RESTGetAPISKUSubscriptionsResult>;
504
- getSubscription(skuId: string, subscriptionId: string): Promise<RESTGetAPISKUSubscriptionResult>;
505
- }
506
-
507
- declare class StageInstanceMethods {
508
- readonly requestHandler: RequestHandler;
509
- constructor(requestHandler: RequestHandler);
510
- createStageInstance(data: RESTPostAPIStageInstanceJSONBody, reason?: string): Promise<RESTPostAPIStageInstanceResult>;
511
- getStageInstance(channelId: string): Promise<RESTGetAPIStageInstanceResult>;
512
- editStageInstance(channelId: string, data: RESTPatchAPIStageInstanceJSONBody, reason?: string): Promise<RESTPatchAPIStageInstanceResult>;
513
- deleteStageInstance(channelId: string, reason?: string): Promise<RESTDeleteAPIStageInstanceResult>;
514
- }
515
-
516
- declare class UserMethods {
517
- readonly requestHandler: RequestHandler;
518
- constructor(requestHandler: RequestHandler);
519
- getSelf(): Promise<RESTGetAPICurrentUserResult>;
520
- getUser(userId: string): Promise<RESTGetAPIUserResult>;
521
- editSelf(data: RESTPatchAPICurrentUserJSONBody): Promise<RESTPatchAPICurrentUserResult>;
522
- getGuilds(options?: RESTGetAPICurrentUserGuildsQuery): Promise<RESTGetAPICurrentUserGuildsResult>;
523
- leaveGuild(guildId: string): Promise<RESTDeleteAPICurrentUserGuildResult>;
524
- createDirectMessageChannel(userId: string): Promise<RESTPostAPICurrentUserCreateDMChannelResult>;
525
- createGroupDirectMessageChannel(data: {
526
- access_tokens: Array<string>;
527
- nicks?: {
528
- [userId: string]: string;
529
- };
530
- }): Promise<RESTPostAPICurrentUserCreateDMChannelResult>;
531
- getConnections(): Promise<RESTGetAPICurrentUserConnectionsResult>;
532
- getApplicationRoleConnection(appId: string): Promise<RESTGetAPICurrentUserApplicationRoleConnectionResult>;
533
- editApplicationRoleConnection(appId: string, data: RESTPutAPICurrentUserApplicationRoleConnectionJSONBody): Promise<RESTPutAPICurrentUserApplicationRoleConnectionResult>;
534
- }
535
-
536
- declare class VoiceMethods {
537
- readonly requestHandler: RequestHandler;
538
- constructor(requestHandler: RequestHandler);
539
- getVoiceRegions(): Promise<RESTGetAPIVoiceRegionsResult>;
540
- getCurrentUserVoiceState(guildId: string): Promise<APIVoiceState>;
541
- getUserVoiceState(guildId: string, userId: string): Promise<APIVoiceState>;
542
- }
543
-
544
- declare function getOauth2Token(clientId: string, redirectURI: string, clientSecret: string, code: string): Promise<RESTPostOAuth2AccessTokenResult>;
545
- declare const _default: {
546
- getOauth2Token: typeof getOauth2Token;
547
- };
548
-
549
- declare const Constants: {
550
- REST_API_VERSION: 10;
551
- GET_CHANNEL_MESSAGES_MIN_RESULTS: 1;
552
- GET_CHANNEL_MESSAGES_MAX_RESULTS: 100;
553
- GET_GUILD_SCHEDULED_EVENT_USERS_MIN_RESULTS: 1;
554
- GET_GUILD_SCHEDULED_EVENT_USERS_MAX_RESULTS: 100;
555
- SEARCH_MEMBERS_MIN_RESULTS: 1;
556
- SEARCH_MEMBERS_MAX_RESULTS: 1000;
557
- BULK_DELETE_MESSAGES_MIN: 2;
558
- BULK_DELETE_MESSAGES_MAX: 100;
559
- OK_STATUS_CODES: Set<number>;
560
- DO_NOT_RETRY_STATUS_CODES: Set<number>;
561
- DEFAULT_RETRY_LIMIT: number;
562
- GLOBAL_REQUESTS_PER_SECOND: number;
563
- standardMultipartHandler(data: {
564
- files: Array<{
565
- name: string;
566
- file: Buffer | Blob | File | Readable | ReadableStream;
567
- }>;
568
- data?: any;
569
- }): Promise<FormData>;
570
- standardAddToFormHandler(form: FormData, name: string, value: string | Buffer | Blob | File | Readable | ReadableStream, filename?: string): Promise<void>;
571
- reasonHeader(reason?: string): {
572
- "X-Audit-Log-Reason"?: string;
573
- };
574
- generateWaveform(pcmSamples: Array<number>, durationSeconds: number, maxPoints?: number): string;
575
- };
576
-
577
- declare const Endpoints: {
578
- BASE_URL: `/api/v${typeof Constants.REST_API_VERSION}`;
579
- BASE_HOST: "https://discord.com";
580
- CDN_URL: "https://cdn.discordapp.com";
581
- APPLICATION_COMMAND: (appId: string, cmdId: string) => `${ReturnType<typeof Endpoints.APPLICATION_COMMANDS>}/{cmd_id}`;
582
- APPLICATION_COMMANDS: (appId: string) => "/applications/{app_id}/commands";
583
- APPLICATION_EMOJI: (appId: string, emojiId: string) => `${ReturnType<typeof Endpoints.APPLICATION_EMOJIS>}/{emoji_id}`;
584
- APPLICATION_EMOJIS: (appId: string) => "/applications/{app_id}/emojis";
585
- APPLICATION_ENTITLEMENT: (appId: string, entitlementId: string) => `${ReturnType<typeof Endpoints.APPLICATION_ENTITLEMENTS>}/{entitlement_id}`;
586
- APPLICATION_ENTITLEMENT_CONSUME: (appId: string, entitlementId: string) => `${ReturnType<typeof Endpoints.APPLICATION_ENTITLEMENT>}/consume`;
587
- APPLICATION_ENTITLEMENTS: (appId: string) => "/applications/{app_id}/entitlements";
588
- APPLICATION_GUILD_COMMANDS_PERMISSIONS: (appId: string, guildId: string) => `${ReturnType<typeof Endpoints.APPLICATION_GUILD_COMMANDS>}/permissions`;
589
- APPLICATION_GUILD_COMMAND_PERMISSIONS: (appId: string, guildId: string, cmdId: string) => `${ReturnType<typeof Endpoints.APPLICATION_GUILD_COMMAND>}/permissions`;
590
- APPLICATION_GUILD_COMMAND: (appId: string, guildId: string, cmdId: string) => `${ReturnType<typeof Endpoints.APPLICATION_GUILD_COMMANDS>}/{cmd_id}`;
591
- APPLICATION_GUILD_COMMANDS: (appId: string, guildId: string) => "/applications/{app_id}/guilds/{guild_id}/commands";
592
- APPLICATION_SKUS: (appId: string) => "/applications/{app_id}/skus";
593
- ATTACHMENTS_REFRESH_URLS: "/attachments/refresh-urls";
594
- CHANNEL: (chanId: string) => `${typeof Endpoints.CHANNELS}/{channel_id}`;
595
- CHANNEL_ATTACHMENTS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/attachments`;
596
- CHANNEL_BULK_DELETE: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL_MESSAGES>}/bulk-delete`;
597
- CHANNEL_FOLLOWERS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/followers`;
598
- CHANNEL_INVITES: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/invites`;
599
- CHANNEL_MESSAGE: (chanId: string, msgId: string) => `${ReturnType<typeof Endpoints.CHANNEL_MESSAGES>}/{message_id}`;
600
- CHANNEL_MESSAGE_CROSSPOST: (chanId: string, msgId: string) => `${ReturnType<typeof Endpoints.CHANNEL_MESSAGE>}/crosspost`;
601
- CHANNEL_MESSAGE_REACTION: (chanId: string, msgId: string, reaction: string) => `${ReturnType<typeof Endpoints.CHANNEL_MESSAGE_REACTIONS>}/{reaction}`;
602
- CHANNEL_MESSAGE_REACTION_USER: (chanId: string, msgId: string, reaction: string, userId: string) => `${ReturnType<typeof Endpoints.CHANNEL_MESSAGE_REACTION>}/{user_id}`;
603
- CHANNEL_MESSAGE_REACTIONS: (chanId: string, msgId: string) => `${ReturnType<typeof Endpoints.CHANNEL_MESSAGE>}/reactions`;
604
- CHANNEL_MESSAGE_THREADS: (chanId: string, msgId: string) => `${ReturnType<typeof Endpoints.CHANNEL_MESSAGE>}/threads`;
605
- CHANNEL_MESSAGES: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/messages`;
606
- CHANNEL_PERMISSION: (chanId: string, permId: string) => `${ReturnType<typeof Endpoints.CHANNEL_PERMISSIONS>}/{perm_id}`;
607
- CHANNEL_PERMISSIONS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/permissions`;
608
- CHANNEL_PIN: (chanId: string, msgId: string) => `${ReturnType<typeof Endpoints.CHANNEL_PINS>}/{message_id}`;
609
- CHANNEL_PINS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/messages/pins`;
610
- CHANNEL_RECIPIENT: (chanId: string, userId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/recipients/{user_id}`;
611
- CHANNEL_THREADS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/threads`;
612
- CHANNEL_THREAD_MEMBER: (chanId: string, memberId: string) => `${ReturnType<typeof Endpoints.CHANNEL_THREAD_MEMBERS>}/{member_id}`;
613
- CHANNEL_THREAD_MEMBERS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/thread-members`;
614
- CHANNEL_THREADS_ARCHIVED_PRIVATE: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL_THREADS>}/archived/private`;
615
- CHANNEL_THREADS_ARCHIVED_PRIVATE_USER: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/users/@me/threads/archived/private`;
616
- CHANNEL_THREADS_ARCHIVED_PUBLIC: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL_THREADS>}/archived/public`;
617
- CHANNEL_TYPING: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/typing`;
618
- CHANNEL_VOICE_STATUS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/voice-status`;
619
- CHANNEL_VOICE_HANGOUT: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/voice-hangout`;
620
- CHANNEL_WEBHOOKS: (chanId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/webhooks`;
621
- CHANNELS: "/channels";
622
- GATEWAY: "/gateway";
623
- GATEWAY_BOT: "/gateway/bot";
624
- GUILD: (guildId: string) => `${typeof Endpoints.GUILDS}/{guild_id}`;
625
- GUILD_AUDIT_LOGS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/audit-logs`;
626
- GUILD_AUTO_MOD_RULE: (guildId: string, ruleId: string) => `${ReturnType<typeof Endpoints.GUILD_AUTO_MOD_RULES>}/{rule_id}`;
627
- GUILD_AUTO_MOD_RULES: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/auto-moderation/rules`;
628
- GUILD_BAN: (guildId: string, memberId: string) => `${ReturnType<typeof Endpoints.GUILD_BANS>}/{member_id}`;
629
- GUILD_BANS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/bans`;
630
- GUILD_CHANNELS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/channels`;
631
- GUILD_EMOJI: (guildId: string, emojiId: string) => `${ReturnType<typeof Endpoints.GUILD_EMOJIS>}/{emoji_id}`;
632
- GUILD_EMOJIS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/emojis`;
633
- GUILD_INVITES: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/invites`;
634
- GUILD_INTEGRATION: (guildId: string, integrationId: string) => `${ReturnType<typeof Endpoints.GUILD_INTEGRATIONS>}/{integration_id}`;
635
- GUILD_INTEGRATIONS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/integrations`;
636
- GUILD_MEMBER: (guildId: string, memberId: string) => `${ReturnType<typeof Endpoints.GUILD_MEMBERS>}/{member_id}`;
637
- GUILD_MEMBER_ROLE: (guildId: string, memberId: string, roleId: string) => `${ReturnType<typeof Endpoints.GUILD_MEMBER>}/roles/{role_id}`;
638
- GUILD_MEMBERS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/members`;
639
- GUILD_MEMBERS_SEARCH: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD_MEMBERS>}/search`;
640
- GUILD_MESSAGES_SEARCH: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/messages/search`;
641
- GUILD_PREVIEW: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/preview`;
642
- GUILD_PRUNE: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/prune`;
643
- GUILD_ROLE: (guildId: string, roleId: string) => `${ReturnType<typeof Endpoints.GUILD_ROLES>}/{role_id}`;
644
- GUILD_ROLES: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/roles`;
645
- GUILD_SCHEDULED_EVENTS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/scheduled-events`;
646
- GUILD_SCHEDULED_EVENT: (guildId: string, eventId: string) => `${ReturnType<typeof Endpoints.GUILD_SCHEDULED_EVENTS>}/{event_id}`;
647
- GUILD_SCHEDULED_EVENT_USERS: (guildId: string, eventId: string) => `${ReturnType<typeof Endpoints.GUILD_SCHEDULED_EVENT>}/users`;
648
- GUILD_STICKER: (guildId: string, stickerId: string) => `${ReturnType<typeof Endpoints.GUILD_STICKERS>}/{sticker_id}`;
649
- GUILD_STICKERS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/stickers`;
650
- GUILD_TEMPLATE: (guildId: string, code: string) => `${ReturnType<typeof Endpoints.GUILD_TEMPLATES>}/{code}`;
651
- GUILD_THREADS_ACTIVE: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/threads/active`;
652
- GUILD_TEMPLATES: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/templates`;
653
- GUILD_VANITY: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/vanity-url`;
654
- GUILD_VOICE_REGIONS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/regions`;
655
- GUILD_VOICE_STATE_USER: (guildId: string, memberId: string) => `${ReturnType<typeof Endpoints.GUILD>}/voice-states/{member_id}`;
656
- GUILD_WEBHOOKS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/webhooks`;
657
- GUILD_WELCOME_SCREEN: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/welcome-screen`;
658
- GUILD_WIDGET: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/widget.json`;
659
- GUILD_WIDGET_SETTINGS: (guildId: string) => `${ReturnType<typeof Endpoints.GUILD>}/widget`;
660
- GUILDS: "/guilds";
661
- INTERACTION_CALLBACK: (interactionId: string, token: string) => "/interactions/{interaction_id}/{token}/callback";
662
- INVITES: (inviteId: string) => "/invites/{invite_id}";
663
- INVITE_TARGET_USERS: (inviteId: string) => `${ReturnType<typeof Endpoints.INVITES>}/target-users`;
664
- INVITE_TARGET_USERS_JOB_STATUS: (inviteId: string) => `${ReturnType<typeof Endpoints.INVITE_TARGET_USERS>}/job-status`;
665
- OAUTH2_APPLICATION: (appId: string) => "/oauth2/applications/{app_id}";
666
- OAUTH2_TOKEN: "/api/oauth2/token";
667
- POLL_ANSWER: (chanId: string, msgId: string, answerId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/polls/{message_id}/answers/{answer_id}`;
668
- POLL_EXPIRE: (chanId: string, msgId: string) => `${ReturnType<typeof Endpoints.CHANNEL>}/polls/{message_id}/expire`;
669
- SKU_SUBSCRIPTIONS: (skuId: string) => "/skus/{sku_id}/subscriptions";
670
- SKU_SUBSCRIPTION: (skuId: string, subscriptionId: string) => `${ReturnType<typeof Endpoints.SKU_SUBSCRIPTIONS>}/{subscription_id}`;
671
- STAGE_INSTANCE_CHANNEL: (chanId: string) => `${typeof Endpoints.STAGE_INSTANCES}/{channel_id}`;
672
- STAGE_INSTANCES: "/stage-instances";
673
- STICKER: (stickerId: string) => "/stickers/{sticker_id}";
674
- TEMPLATE: (code: string) => "/guilds/templates/{code}";
675
- USER: (userId: string) => `${typeof Endpoints.USERS}/{user_id}`;
676
- USER_APPLICATION_ROLE_CONNECTION: (userId: string, appId: string) => `${ReturnType<typeof Endpoints.USER>}/applications/{app_id}/role-connection`;
677
- USER_CHANNELS: (userId: string) => `${ReturnType<typeof Endpoints.USER>}/channels`;
678
- USER_CONNECTIONS: (userId: string) => `${ReturnType<typeof Endpoints.USER>}/connections`;
679
- USER_GUILD: (userId: string, guildId: string) => `${ReturnType<typeof Endpoints.USER_GUILDS>}/{guild_id}`;
680
- USER_GUILDS: (userId: string) => `${ReturnType<typeof Endpoints.USER>}/guilds`;
681
- USER_GUILD_VOICE_STATE: (guildId: string, userId: string) => `${ReturnType<typeof Endpoints.GUILD>}/voice-states/{user_id}`;
682
- USERS: "/users";
683
- VOICE_REGIONS: "/voice/regions";
684
- WEBHOOK: (hookId: string) => "/webhooks/{hook_id}";
685
- WEBHOOK_TOKEN: (hookId: string, token: string) => `${ReturnType<typeof Endpoints.WEBHOOK>}/{token}`;
686
- WEBHOOK_TOKEN_GITHUB: (hookId: string, token: string) => `${ReturnType<typeof Endpoints.WEBHOOK_TOKEN>}/github`;
687
- WEBHOOK_TOKEN_MESSAGE: (hookId: string, token: string, msgId: string) => `${ReturnType<typeof Endpoints.WEBHOOK_TOKEN>}/messages/{message_id}`;
688
- WEBHOOK_TOKEN_SLACK: (hookId: string, token: string) => `${ReturnType<typeof Endpoints.WEBHOOK_TOKEN>}/slack`;
689
- };
690
-
691
- declare class SnowTransfer {
692
- options: SnowTransferOptions;
693
- token: string | undefined;
694
- readonly channel: ChannelMethods;
695
- readonly requestHandler: RequestHandler;
696
- readonly user: UserMethods;
697
- readonly assets: AssetsMethods;
698
- readonly webhook: WebhookMethods;
699
- readonly guild: GuildMethods;
700
- readonly guildScheduledEvent: GuildScheduledEventMethods;
701
- readonly guildTemplate: GuildTemplateMethods;
702
- readonly interaction: InteractionMethods;
703
- readonly invite: InviteMethods;
704
- readonly voice: VoiceMethods;
705
- readonly bot: BotMethods;
706
- readonly auditLog: AuditLogMethods;
707
- readonly stageInstance: StageInstanceMethods;
708
- readonly autoMod: AutoModerationMethods;
709
- readonly entitlement: EntitlementMethods;
710
- readonly sku: SkuMethods;
711
- readonly ratelimiter: Ratelimiter;
712
- constructor(token?: string, options?: Partial<SnowTransferOptions>);
713
- }
714
-
715
- declare function graph(stateMachine: StateMachine): string;
716
-
1
+ import AuditLogMethods = require("./methods/AuditLog");
2
+ import AutoModerationMethods = require("./methods/AutoModeration");
3
+ import BotMethods = require("./methods/Bot");
4
+ import ChannelMethods = require("./methods/Channel");
5
+ import AssetsMethods = require("./methods/Assets");
6
+ import EntitlementsMethods = require("./methods/Entitlements");
7
+ import GuildMethods = require("./methods/Guild");
8
+ import GuildScheduledEventMethods = require("./methods/GuildScheduledEvent");
9
+ import GuildTemplateMethods = require("./methods/GuildTemplate");
10
+ import InteractionMethods = require("./methods/Interaction");
11
+ import InviteMethods = require("./methods/Invite");
12
+ import SkuMethods = require("./methods/Sku");
13
+ import StageInstanceMethods = require("./methods/StageInstance");
14
+ import UserMethods = require("./methods/User");
15
+ import VoiceMethods = require("./methods/Voice");
16
+ import WebhookMethods = require("./methods/Webhook");
17
+ import tokenless = require("./tokenless");
18
+ import Constants = require("./Constants");
19
+ import Endpoints = require("./Endpoints");
20
+ import SnowTransfer = require("./SnowTransfer");
21
+ import StateMachine = require("./StateMachine");
22
+ import { graph } from "./StateMachineGraph";
717
23
  declare const graphWrapped: {
718
24
  graph: typeof graph;
719
25
  };
720
-
721
- export { AssetsMethods, AuditLogMethods, AutoModerationMethods, BotMethods, Bucket, ChannelMethods, Constants, type Counter, DiscordAPIError, Endpoints, EntitlementMethods as EntitlementsMethods, GuildMethods, GuildScheduledEventMethods, GuildTemplateMethods, type HTTPMethod, type HandlerEvents, InteractionMethods, IntervalCounter, InviteMethods, LeakyCounter, type RESTPostAPIAttachmentsRefreshURLsResult, type RatelimitInfo, Ratelimiter, type RequestEventData, RequestHandler, type RequestHandlerOptions, type SMHistory, type SMState, type SMTransition, SkuMethods, SnowTransfer, type SnowTransferOptions, StageInstanceMethods, StateMachine, graphWrapped as StateMachineGraph, UserMethods, VoiceMethods, WebhookMethods, _default as tokenless };
26
+ export * from "./Types";
27
+ export * from "./RequestHandler";
28
+ export { AuditLogMethods, AutoModerationMethods, BotMethods, ChannelMethods, AssetsMethods, EntitlementsMethods, GuildMethods, GuildScheduledEventMethods, GuildTemplateMethods, InteractionMethods, InviteMethods, SkuMethods, StageInstanceMethods, UserMethods, VoiceMethods, WebhookMethods, tokenless, Constants, Endpoints, SnowTransfer, StateMachine, graphWrapped as StateMachineGraph };