@discordjs/core 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/http-only.d.mts +24 -7
- package/dist/http-only.d.ts +24 -7
- package/dist/http-only.js +47 -2
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +47 -2
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +24 -7
- package/dist/index.d.ts +24 -7
- package/dist/index.js +47 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
</p>
|
|
6
6
|
<br />
|
|
7
7
|
<p>
|
|
8
|
-
<a href="https://discord.gg/djs"><img src="https://img.shields.io/
|
|
8
|
+
<a href="https://discord.gg/djs"><img src="https://img.shields.io/badge/join_us-on_discord-5865F2?logo=discord&logoColor=white" alt="Discord server" /></a>
|
|
9
9
|
<a href="https://www.npmjs.com/package/@discordjs/core"><img src="https://img.shields.io/npm/v/@discordjs/core.svg?maxAge=3600" alt="npm version" /></a>
|
|
10
10
|
<a href="https://www.npmjs.com/package/@discordjs/core"><img src="https://img.shields.io/npm/dt/@discordjs/core.svg?maxAge=3600" alt="npm downloads" /></a>
|
|
11
11
|
<a href="https://github.com/discordjs/discord.js/actions"><img src="https://github.com/discordjs/discord.js/actions/workflows/test.yml/badge.svg" alt="Build status" /></a>
|
|
12
|
-
<a href="https://github.com/discordjs/discord.js/commits/main/packages/core"><img alt="Last commit." src="https://img.shields.io/github/last-commit/discordjs/discord.js?logo=github&logoColor=ffffff&path=packages%2Fcore"
|
|
12
|
+
<a href="https://github.com/discordjs/discord.js/commits/main/packages/core"><img alt="Last commit." src="https://img.shields.io/github/last-commit/discordjs/discord.js?logo=github&logoColor=ffffff&path=packages%2Fcore" /></a>
|
|
13
|
+
<a href="https://opencollective.com/discordjs"><img src="https://img.shields.io/opencollective/backers/discordjs?maxAge=3600&logo=opencollective" alt="backers" /></a>
|
|
13
14
|
<a href="https://codecov.io/gh/discordjs/discord.js"><img src="https://codecov.io/gh/discordjs/discord.js/branch/main/graph/badge.svg?precision=2&flag=core" alt="Code coverage" /></a>
|
|
14
15
|
</p>
|
|
15
16
|
<p>
|
|
@@ -88,7 +89,7 @@ const guild = await api.guilds.get('1234567891011');
|
|
|
88
89
|
- [Guide][guide] ([source][guide-source])
|
|
89
90
|
Also see the v13 to v14 [Update Guide][guide-update], which includes updated and removed items from the library.
|
|
90
91
|
- [discord.js Discord server][discord]
|
|
91
|
-
- [Discord
|
|
92
|
+
- [Discord Developers Discord server][discord-developers]
|
|
92
93
|
- [GitHub][source]
|
|
93
94
|
- [npm][npm]
|
|
94
95
|
- [Related libraries][related-libs]
|
|
@@ -106,12 +107,12 @@ If you don't understand something in the documentation, you are experiencing pro
|
|
|
106
107
|
[website]: https://discord.js.org
|
|
107
108
|
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
|
|
108
109
|
[documentation]: https://discord.js.org/docs/packages/core/stable
|
|
109
|
-
[guide]: https://discordjs.guide
|
|
110
|
-
[guide-source]: https://github.com/discordjs/guide
|
|
111
|
-
[guide-update]: https://discordjs.guide/additional-info/changes-in-v14
|
|
110
|
+
[guide]: https://discordjs.guide
|
|
111
|
+
[guide-source]: https://github.com/discordjs/discord.js/tree/main/apps/guide
|
|
112
|
+
[guide-update]: https://discordjs.guide/legacy/additional-info/changes-in-v14
|
|
112
113
|
[discord]: https://discord.gg/djs
|
|
113
|
-
[discord-
|
|
114
|
+
[discord-developers]: https://discord.gg/discord-developers
|
|
114
115
|
[source]: https://github.com/discordjs/discord.js/tree/main/packages/core
|
|
115
116
|
[npm]: https://www.npmjs.com/package/@discordjs/core
|
|
116
|
-
[related-libs]: https://discord.com/developers/
|
|
117
|
+
[related-libs]: https://docs.discord.com/developers/developer-tools/community-resources#libraries
|
|
117
118
|
[contributing]: https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md
|
package/dist/http-only.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { REST, RequestData, RawFile } from '@discordjs/rest';
|
|
2
2
|
import * as discord_api_types_v10 from 'discord-api-types/v10';
|
|
3
|
-
import { Snowflake, RESTGetAPIApplicationCommandsQuery, RESTGetAPIApplicationCommandsResult, RESTPostAPIApplicationCommandsJSONBody, RESTPatchAPIApplicationCommandJSONBody, RESTPutAPIApplicationCommandsJSONBody, RESTPutAPIApplicationCommandsResult, RESTGetAPIApplicationGuildCommandsQuery, RESTGetAPIApplicationGuildCommandsResult, RESTPostAPIApplicationGuildCommandsJSONBody, RESTPostAPIApplicationGuildCommandsResult, RESTGetAPIApplicationGuildCommandResult, RESTPatchAPIApplicationGuildCommandJSONBody, RESTPatchAPIApplicationGuildCommandResult, RESTPutAPIApplicationGuildCommandsJSONBody, RESTPutAPIApplicationGuildCommandsResult, RESTGetAPIGuildApplicationCommandsPermissionsResult, RESTPutAPIApplicationCommandPermissionsJSONBody, RESTPatchCurrentApplicationJSONBody, RESTGetAPIApplicationEmojisResult, RESTPostAPIApplicationEmojiJSONBody, RESTPatchAPIApplicationEmojiJSONBody, RESTPostAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTPatchAPIChannelJSONBody, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTPostAPIChannelInviteJSONBody, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelThreadsJSONBody, RESTPostAPIChannelThreadsResult, RESTPostAPIGuildForumThreadsJSONBody,
|
|
3
|
+
import { Snowflake, RESTGetAPIApplicationCommandsQuery, RESTGetAPIApplicationCommandsResult, RESTPostAPIApplicationCommandsJSONBody, RESTPatchAPIApplicationCommandJSONBody, RESTPutAPIApplicationCommandsJSONBody, RESTPutAPIApplicationCommandsResult, RESTGetAPIApplicationGuildCommandsQuery, RESTGetAPIApplicationGuildCommandsResult, RESTPostAPIApplicationGuildCommandsJSONBody, RESTPostAPIApplicationGuildCommandsResult, RESTGetAPIApplicationGuildCommandResult, RESTPatchAPIApplicationGuildCommandJSONBody, RESTPatchAPIApplicationGuildCommandResult, RESTPutAPIApplicationGuildCommandsJSONBody, RESTPutAPIApplicationGuildCommandsResult, RESTGetAPIGuildApplicationCommandsPermissionsResult, RESTPutAPIApplicationCommandPermissionsJSONBody, RESTPatchCurrentApplicationJSONBody, RESTGetAPIApplicationEmojisResult, RESTPostAPIApplicationEmojiJSONBody, RESTPatchAPIApplicationEmojiJSONBody, RESTPostAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTPatchAPIChannelJSONBody, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTPostAPIChannelInviteJSONBody, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelThreadsJSONBody, RESTPostAPIChannelThreadsResult, RESTPostAPIGuildForumThreadsJSONBody, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelUsersThreadsArchivedResult, RESTPostAPIChannelWebhookJSONBody, RESTGetAPIChannelWebhooksResult, RESTPutAPIChannelPermissionJSONBody, RESTPostAPISoundboardSendSoundJSONBody, RESTPutAPIChannelRecipientJSONBody, RESTGetAPIGuildResult, RESTGetAPIGuildQuery, RESTPostAPIGuildsJSONBody, RESTPatchAPIGuildJSONBody, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildChannelsResult, RESTPostAPIGuildChannelJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTPutAPIGuildBanJSONBody, RESTPostAPIGuildBulkBanJSONBody, RESTPostAPIGuildBulkBanResult, RESTGetAPIGuildRolesResult, RESTPostAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleJSONBody, GuildMFALevel, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildIntegrationsResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTGetAPIGuildVanityUrlResult, GuildWidgetStyle, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTGetAPIGuildEmojisResult, RESTPostAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiJSONBody, RESTGetAPIGuildScheduledEventsQuery, RESTGetAPIGuildScheduledEventsResult, RESTPostAPIGuildScheduledEventJSONBody, RESTGetAPIGuildScheduledEventQuery, RESTPatchAPIGuildScheduledEventJSONBody, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPIGuildTemplatesResult, RESTPatchAPIGuildTemplateJSONBody, RESTGetAPIGuildStickersResult, RESTPostAPIGuildStickerFormDataBody, RESTPatchAPIGuildStickerJSONBody, RESTGetAPIAuditLogQuery, RESTGetAPIAutoModerationRulesResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleJSONBody, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTGetAPIGuildMessagesSearchQuery, RESTGetAPIGuildMessagesSearchResult, RESTPatchAPIGuildMemberJSONBody, RESTPostAPIGuildTemplatesJSONBody, RESTGetAPIGuildWebhooksResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPutAPIGuildOnboardingJSONBody, RESTGetAPIGuildSoundboardSoundsResult, RESTPostAPIGuildSoundboardSoundJSONBody, RESTPatchAPIGuildSoundboardSoundJSONBody, RESTPutAPIGuildIncidentActionsJSONBody, RESTGetAPIGuildRoleMemberCountsResult, RESTPatchAPIWebhookJSONBody, RESTPostAPIWebhookWithTokenJSONBody, RESTPostAPIWebhookWithTokenQuery, RESTPostAPIWebhookWithTokenWaitResult, RESTPostAPIWebhookWithTokenSlackQuery, RESTPostAPIWebhookWithTokenGitHubQuery, RESTGetAPIWebhookWithTokenMessageQuery, RESTPatchAPIWebhookWithTokenMessageJSONBody, RESTPatchAPIWebhookWithTokenMessageQuery, APIInteractionResponseCallbackData, RESTPostAPIInteractionCallbackQuery, RESTPostAPIInteractionCallbackWithResponseResult, APIInteractionResponseDeferredChannelMessageWithSource, APICommandAutocompleteInteractionResponseCallbackData, APIModalInteractionResponseCallbackData, RESTGetAPIInviteQuery, RESTGetAPISKUsResult, RESTGetAPISKUSubscriptionsQuery, RESTGetAPISKUSubscriptionsResult, RESTGetAPIEntitlementsQuery, RESTGetAPIEntitlementsResult, RESTPostAPIEntitlementJSONBody, RESTOAuth2AuthorizationQuery, RESTPostOAuth2AccessTokenURLEncodedData, RESTPostOAuth2AccessTokenResult, RESTPostOAuth2RefreshTokenURLEncodedData, RESTPostOAuth2ClientCredentialsURLEncodedData, RESTGetAPIOAuth2CurrentAuthorizationResult, RESTPostOAuth2TokenRevocationQuery, RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTGetAPIApplicationRoleConnectionMetadataResult, RESTPutAPIApplicationRoleConnectionMetadataJSONBody, RESTPutAPIApplicationRoleConnectionMetadataResult, RESTGetAPISoundboardDefaultSoundsResult, RESTPostAPIStageInstanceJSONBody, RESTPatchAPIStageInstanceJSONBody, RESTGetStickerPacksResult, APIThreadMember, RESTGetAPIChannelThreadMembersResult, RESTGetAPICurrentUserGuildsQuery, RESTGetAPICurrentUserGuildsResult, RESTPatchAPICurrentUserJSONBody, RESTPatchAPICurrentGuildMemberJSONBody, RESTGetAPICurrentUserConnectionsResult, RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, RESTGetAPIVoiceRegionsResult } from 'discord-api-types/v10';
|
|
4
4
|
export * from 'discord-api-types/v10';
|
|
5
5
|
import * as discord_api_types_globals from 'discord-api-types/globals';
|
|
6
6
|
|
|
@@ -219,6 +219,15 @@ declare class ApplicationsAPI {
|
|
|
219
219
|
* @param options - The options for deleting the emoji
|
|
220
220
|
*/
|
|
221
221
|
deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Fetches an activity instance of an application
|
|
224
|
+
*
|
|
225
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
226
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
227
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
228
|
+
* @param options - The options for fetching the activity instance
|
|
229
|
+
*/
|
|
230
|
+
getActivityInstance(applicationId: Snowflake, instanceId: string, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIActivityInstance>;
|
|
222
231
|
}
|
|
223
232
|
|
|
224
233
|
interface StartForumThreadOptions extends RESTPostAPIGuildForumThreadsJSONBody {
|
|
@@ -464,7 +473,7 @@ declare class ChannelsAPI {
|
|
|
464
473
|
* @param body - The data for starting the thread
|
|
465
474
|
* @param options - The options for starting the thread
|
|
466
475
|
*/
|
|
467
|
-
createForumThread(channelId: Snowflake, { message, ...optionsBody }: StartForumThreadOptions, { signal, reason }?: Pick<RequestData, 'reason' | 'signal'>): Promise<
|
|
476
|
+
createForumThread(channelId: Snowflake, { message, ...optionsBody }: StartForumThreadOptions, { signal, reason }?: Pick<RequestData, 'reason' | 'signal'>): Promise<RESTPostAPIChannelThreadsResult>;
|
|
468
477
|
/**
|
|
469
478
|
* Fetches the archived threads of a channel
|
|
470
479
|
*
|
|
@@ -528,7 +537,7 @@ declare class ChannelsAPI {
|
|
|
528
537
|
* @param body - The data for sending the soundboard sound
|
|
529
538
|
* @param options - The options for sending the soundboard sound
|
|
530
539
|
*/
|
|
531
|
-
sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<
|
|
540
|
+
sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
|
|
532
541
|
/**
|
|
533
542
|
* Adds a recipient to a group DM channel
|
|
534
543
|
*
|
|
@@ -911,7 +920,7 @@ declare class GuildsAPI {
|
|
|
911
920
|
* @param options - The options for editing the voice state
|
|
912
921
|
* @deprecated Use {@link VoiceAPI.editUserVoiceState} instead
|
|
913
922
|
*/
|
|
914
|
-
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<
|
|
923
|
+
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<undefined>;
|
|
915
924
|
/**
|
|
916
925
|
* Fetches all emojis for a guild
|
|
917
926
|
*
|
|
@@ -1248,7 +1257,7 @@ declare class GuildsAPI {
|
|
|
1248
1257
|
* @param options - The options for setting the voice state
|
|
1249
1258
|
* @deprecated Use {@link VoiceAPI.editVoiceState} instead
|
|
1250
1259
|
*/
|
|
1251
|
-
setVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<
|
|
1260
|
+
setVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1252
1261
|
/**
|
|
1253
1262
|
* Fetches a guild onboarding
|
|
1254
1263
|
*
|
|
@@ -1320,6 +1329,14 @@ declare class GuildsAPI {
|
|
|
1320
1329
|
* @param options - The options for modifying guild incident actions
|
|
1321
1330
|
*/
|
|
1322
1331
|
editIncidentActions(guildId: Snowflake, body: RESTPutAPIGuildIncidentActionsJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIIncidentsData>;
|
|
1332
|
+
/**
|
|
1333
|
+
* Fetches role member counts for a guild.
|
|
1334
|
+
*
|
|
1335
|
+
* @see {@link https://docs.discord.com/developers/resources/guild#get-guild-role-member-counts}
|
|
1336
|
+
* @param guildId - The id of the guild to fetch role member counts for
|
|
1337
|
+
* @param options - The options for fetching role member counts
|
|
1338
|
+
*/
|
|
1339
|
+
getRoleMemberCounts(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildRoleMemberCountsResult>;
|
|
1323
1340
|
}
|
|
1324
1341
|
|
|
1325
1342
|
type CreateWebhookMessageOptions = RESTPostAPIWebhookWithTokenJSONBody & RESTPostAPIWebhookWithTokenQuery & {
|
|
@@ -2235,7 +2252,7 @@ declare class VoiceAPI {
|
|
|
2235
2252
|
* @param body - The data for editing the voice state
|
|
2236
2253
|
* @param options - The options for editing the voice state
|
|
2237
2254
|
*/
|
|
2238
|
-
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<
|
|
2255
|
+
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<undefined>;
|
|
2239
2256
|
/**
|
|
2240
2257
|
* Edits the voice state for the current user
|
|
2241
2258
|
*
|
|
@@ -2244,7 +2261,7 @@ declare class VoiceAPI {
|
|
|
2244
2261
|
* @param body - The data for editing the voice state
|
|
2245
2262
|
* @param options - The options for editing the voice state
|
|
2246
2263
|
*/
|
|
2247
|
-
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<
|
|
2264
|
+
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
2248
2265
|
}
|
|
2249
2266
|
|
|
2250
2267
|
declare class API {
|
package/dist/http-only.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { REST, RequestData, RawFile } from '@discordjs/rest';
|
|
2
2
|
import * as discord_api_types_v10 from 'discord-api-types/v10';
|
|
3
|
-
import { Snowflake, RESTGetAPIApplicationCommandsQuery, RESTGetAPIApplicationCommandsResult, RESTPostAPIApplicationCommandsJSONBody, RESTPatchAPIApplicationCommandJSONBody, RESTPutAPIApplicationCommandsJSONBody, RESTPutAPIApplicationCommandsResult, RESTGetAPIApplicationGuildCommandsQuery, RESTGetAPIApplicationGuildCommandsResult, RESTPostAPIApplicationGuildCommandsJSONBody, RESTPostAPIApplicationGuildCommandsResult, RESTGetAPIApplicationGuildCommandResult, RESTPatchAPIApplicationGuildCommandJSONBody, RESTPatchAPIApplicationGuildCommandResult, RESTPutAPIApplicationGuildCommandsJSONBody, RESTPutAPIApplicationGuildCommandsResult, RESTGetAPIGuildApplicationCommandsPermissionsResult, RESTPutAPIApplicationCommandPermissionsJSONBody, RESTPatchCurrentApplicationJSONBody, RESTGetAPIApplicationEmojisResult, RESTPostAPIApplicationEmojiJSONBody, RESTPatchAPIApplicationEmojiJSONBody, RESTPostAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTPatchAPIChannelJSONBody, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTPostAPIChannelInviteJSONBody, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelThreadsJSONBody, RESTPostAPIChannelThreadsResult, RESTPostAPIGuildForumThreadsJSONBody,
|
|
3
|
+
import { Snowflake, RESTGetAPIApplicationCommandsQuery, RESTGetAPIApplicationCommandsResult, RESTPostAPIApplicationCommandsJSONBody, RESTPatchAPIApplicationCommandJSONBody, RESTPutAPIApplicationCommandsJSONBody, RESTPutAPIApplicationCommandsResult, RESTGetAPIApplicationGuildCommandsQuery, RESTGetAPIApplicationGuildCommandsResult, RESTPostAPIApplicationGuildCommandsJSONBody, RESTPostAPIApplicationGuildCommandsResult, RESTGetAPIApplicationGuildCommandResult, RESTPatchAPIApplicationGuildCommandJSONBody, RESTPatchAPIApplicationGuildCommandResult, RESTPutAPIApplicationGuildCommandsJSONBody, RESTPutAPIApplicationGuildCommandsResult, RESTGetAPIGuildApplicationCommandsPermissionsResult, RESTPutAPIApplicationCommandPermissionsJSONBody, RESTPatchCurrentApplicationJSONBody, RESTGetAPIApplicationEmojisResult, RESTPostAPIApplicationEmojiJSONBody, RESTPatchAPIApplicationEmojiJSONBody, RESTPostAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTPatchAPIChannelJSONBody, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTPostAPIChannelInviteJSONBody, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelThreadsJSONBody, RESTPostAPIChannelThreadsResult, RESTPostAPIGuildForumThreadsJSONBody, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelUsersThreadsArchivedResult, RESTPostAPIChannelWebhookJSONBody, RESTGetAPIChannelWebhooksResult, RESTPutAPIChannelPermissionJSONBody, RESTPostAPISoundboardSendSoundJSONBody, RESTPutAPIChannelRecipientJSONBody, RESTGetAPIGuildResult, RESTGetAPIGuildQuery, RESTPostAPIGuildsJSONBody, RESTPatchAPIGuildJSONBody, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildChannelsResult, RESTPostAPIGuildChannelJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTPutAPIGuildBanJSONBody, RESTPostAPIGuildBulkBanJSONBody, RESTPostAPIGuildBulkBanResult, RESTGetAPIGuildRolesResult, RESTPostAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleJSONBody, GuildMFALevel, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildIntegrationsResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTGetAPIGuildVanityUrlResult, GuildWidgetStyle, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTGetAPIGuildEmojisResult, RESTPostAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiJSONBody, RESTGetAPIGuildScheduledEventsQuery, RESTGetAPIGuildScheduledEventsResult, RESTPostAPIGuildScheduledEventJSONBody, RESTGetAPIGuildScheduledEventQuery, RESTPatchAPIGuildScheduledEventJSONBody, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPIGuildTemplatesResult, RESTPatchAPIGuildTemplateJSONBody, RESTGetAPIGuildStickersResult, RESTPostAPIGuildStickerFormDataBody, RESTPatchAPIGuildStickerJSONBody, RESTGetAPIAuditLogQuery, RESTGetAPIAutoModerationRulesResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleJSONBody, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTGetAPIGuildMessagesSearchQuery, RESTGetAPIGuildMessagesSearchResult, RESTPatchAPIGuildMemberJSONBody, RESTPostAPIGuildTemplatesJSONBody, RESTGetAPIGuildWebhooksResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPutAPIGuildOnboardingJSONBody, RESTGetAPIGuildSoundboardSoundsResult, RESTPostAPIGuildSoundboardSoundJSONBody, RESTPatchAPIGuildSoundboardSoundJSONBody, RESTPutAPIGuildIncidentActionsJSONBody, RESTGetAPIGuildRoleMemberCountsResult, RESTPatchAPIWebhookJSONBody, RESTPostAPIWebhookWithTokenJSONBody, RESTPostAPIWebhookWithTokenQuery, RESTPostAPIWebhookWithTokenWaitResult, RESTPostAPIWebhookWithTokenSlackQuery, RESTPostAPIWebhookWithTokenGitHubQuery, RESTGetAPIWebhookWithTokenMessageQuery, RESTPatchAPIWebhookWithTokenMessageJSONBody, RESTPatchAPIWebhookWithTokenMessageQuery, APIInteractionResponseCallbackData, RESTPostAPIInteractionCallbackQuery, RESTPostAPIInteractionCallbackWithResponseResult, APIInteractionResponseDeferredChannelMessageWithSource, APICommandAutocompleteInteractionResponseCallbackData, APIModalInteractionResponseCallbackData, RESTGetAPIInviteQuery, RESTGetAPISKUsResult, RESTGetAPISKUSubscriptionsQuery, RESTGetAPISKUSubscriptionsResult, RESTGetAPIEntitlementsQuery, RESTGetAPIEntitlementsResult, RESTPostAPIEntitlementJSONBody, RESTOAuth2AuthorizationQuery, RESTPostOAuth2AccessTokenURLEncodedData, RESTPostOAuth2AccessTokenResult, RESTPostOAuth2RefreshTokenURLEncodedData, RESTPostOAuth2ClientCredentialsURLEncodedData, RESTGetAPIOAuth2CurrentAuthorizationResult, RESTPostOAuth2TokenRevocationQuery, RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTGetAPIApplicationRoleConnectionMetadataResult, RESTPutAPIApplicationRoleConnectionMetadataJSONBody, RESTPutAPIApplicationRoleConnectionMetadataResult, RESTGetAPISoundboardDefaultSoundsResult, RESTPostAPIStageInstanceJSONBody, RESTPatchAPIStageInstanceJSONBody, RESTGetStickerPacksResult, APIThreadMember, RESTGetAPIChannelThreadMembersResult, RESTGetAPICurrentUserGuildsQuery, RESTGetAPICurrentUserGuildsResult, RESTPatchAPICurrentUserJSONBody, RESTPatchAPICurrentGuildMemberJSONBody, RESTGetAPICurrentUserConnectionsResult, RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, RESTGetAPIVoiceRegionsResult } from 'discord-api-types/v10';
|
|
4
4
|
export * from 'discord-api-types/v10';
|
|
5
5
|
import * as discord_api_types_globals from 'discord-api-types/globals';
|
|
6
6
|
|
|
@@ -219,6 +219,15 @@ declare class ApplicationsAPI {
|
|
|
219
219
|
* @param options - The options for deleting the emoji
|
|
220
220
|
*/
|
|
221
221
|
deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Fetches an activity instance of an application
|
|
224
|
+
*
|
|
225
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
226
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
227
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
228
|
+
* @param options - The options for fetching the activity instance
|
|
229
|
+
*/
|
|
230
|
+
getActivityInstance(applicationId: Snowflake, instanceId: string, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIActivityInstance>;
|
|
222
231
|
}
|
|
223
232
|
|
|
224
233
|
interface StartForumThreadOptions extends RESTPostAPIGuildForumThreadsJSONBody {
|
|
@@ -464,7 +473,7 @@ declare class ChannelsAPI {
|
|
|
464
473
|
* @param body - The data for starting the thread
|
|
465
474
|
* @param options - The options for starting the thread
|
|
466
475
|
*/
|
|
467
|
-
createForumThread(channelId: Snowflake, { message, ...optionsBody }: StartForumThreadOptions, { signal, reason }?: Pick<RequestData, 'reason' | 'signal'>): Promise<
|
|
476
|
+
createForumThread(channelId: Snowflake, { message, ...optionsBody }: StartForumThreadOptions, { signal, reason }?: Pick<RequestData, 'reason' | 'signal'>): Promise<RESTPostAPIChannelThreadsResult>;
|
|
468
477
|
/**
|
|
469
478
|
* Fetches the archived threads of a channel
|
|
470
479
|
*
|
|
@@ -528,7 +537,7 @@ declare class ChannelsAPI {
|
|
|
528
537
|
* @param body - The data for sending the soundboard sound
|
|
529
538
|
* @param options - The options for sending the soundboard sound
|
|
530
539
|
*/
|
|
531
|
-
sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<
|
|
540
|
+
sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
|
|
532
541
|
/**
|
|
533
542
|
* Adds a recipient to a group DM channel
|
|
534
543
|
*
|
|
@@ -911,7 +920,7 @@ declare class GuildsAPI {
|
|
|
911
920
|
* @param options - The options for editing the voice state
|
|
912
921
|
* @deprecated Use {@link VoiceAPI.editUserVoiceState} instead
|
|
913
922
|
*/
|
|
914
|
-
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<
|
|
923
|
+
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<undefined>;
|
|
915
924
|
/**
|
|
916
925
|
* Fetches all emojis for a guild
|
|
917
926
|
*
|
|
@@ -1248,7 +1257,7 @@ declare class GuildsAPI {
|
|
|
1248
1257
|
* @param options - The options for setting the voice state
|
|
1249
1258
|
* @deprecated Use {@link VoiceAPI.editVoiceState} instead
|
|
1250
1259
|
*/
|
|
1251
|
-
setVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<
|
|
1260
|
+
setVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1252
1261
|
/**
|
|
1253
1262
|
* Fetches a guild onboarding
|
|
1254
1263
|
*
|
|
@@ -1320,6 +1329,14 @@ declare class GuildsAPI {
|
|
|
1320
1329
|
* @param options - The options for modifying guild incident actions
|
|
1321
1330
|
*/
|
|
1322
1331
|
editIncidentActions(guildId: Snowflake, body: RESTPutAPIGuildIncidentActionsJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIIncidentsData>;
|
|
1332
|
+
/**
|
|
1333
|
+
* Fetches role member counts for a guild.
|
|
1334
|
+
*
|
|
1335
|
+
* @see {@link https://docs.discord.com/developers/resources/guild#get-guild-role-member-counts}
|
|
1336
|
+
* @param guildId - The id of the guild to fetch role member counts for
|
|
1337
|
+
* @param options - The options for fetching role member counts
|
|
1338
|
+
*/
|
|
1339
|
+
getRoleMemberCounts(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildRoleMemberCountsResult>;
|
|
1323
1340
|
}
|
|
1324
1341
|
|
|
1325
1342
|
type CreateWebhookMessageOptions = RESTPostAPIWebhookWithTokenJSONBody & RESTPostAPIWebhookWithTokenQuery & {
|
|
@@ -2235,7 +2252,7 @@ declare class VoiceAPI {
|
|
|
2235
2252
|
* @param body - The data for editing the voice state
|
|
2236
2253
|
* @param options - The options for editing the voice state
|
|
2237
2254
|
*/
|
|
2238
|
-
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<
|
|
2255
|
+
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<undefined>;
|
|
2239
2256
|
/**
|
|
2240
2257
|
* Edits the voice state for the current user
|
|
2241
2258
|
*
|
|
@@ -2244,7 +2261,7 @@ declare class VoiceAPI {
|
|
|
2244
2261
|
* @param body - The data for editing the voice state
|
|
2245
2262
|
* @param options - The options for editing the voice state
|
|
2246
2263
|
*/
|
|
2247
|
-
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<
|
|
2264
|
+
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
2248
2265
|
}
|
|
2249
2266
|
|
|
2250
2267
|
declare class API {
|
package/dist/http-only.js
CHANGED
|
@@ -53,6 +53,7 @@ var ApplicationCommandsAPI = class {
|
|
|
53
53
|
constructor(rest) {
|
|
54
54
|
this.rest = rest;
|
|
55
55
|
}
|
|
56
|
+
rest;
|
|
56
57
|
static {
|
|
57
58
|
__name(this, "ApplicationCommandsAPI");
|
|
58
59
|
}
|
|
@@ -278,6 +279,7 @@ var ApplicationsAPI = class {
|
|
|
278
279
|
constructor(rest) {
|
|
279
280
|
this.rest = rest;
|
|
280
281
|
}
|
|
282
|
+
rest;
|
|
281
283
|
static {
|
|
282
284
|
__name(this, "ApplicationsAPI");
|
|
283
285
|
}
|
|
@@ -368,6 +370,19 @@ var ApplicationsAPI = class {
|
|
|
368
370
|
async deleteEmoji(applicationId, emojiId, { signal } = {}) {
|
|
369
371
|
await this.rest.delete(import_v102.Routes.applicationEmoji(applicationId, emojiId), { signal });
|
|
370
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* Fetches an activity instance of an application
|
|
375
|
+
*
|
|
376
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
377
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
378
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
379
|
+
* @param options - The options for fetching the activity instance
|
|
380
|
+
*/
|
|
381
|
+
async getActivityInstance(applicationId, instanceId, { signal } = {}) {
|
|
382
|
+
return this.rest.get(import_v102.Routes.applicationActivityInstance(applicationId, instanceId), {
|
|
383
|
+
signal
|
|
384
|
+
});
|
|
385
|
+
}
|
|
371
386
|
};
|
|
372
387
|
|
|
373
388
|
// src/api/channel.ts
|
|
@@ -377,6 +392,7 @@ var ChannelsAPI = class {
|
|
|
377
392
|
constructor(rest) {
|
|
378
393
|
this.rest = rest;
|
|
379
394
|
}
|
|
395
|
+
rest;
|
|
380
396
|
static {
|
|
381
397
|
__name(this, "ChannelsAPI");
|
|
382
398
|
}
|
|
@@ -801,7 +817,7 @@ var ChannelsAPI = class {
|
|
|
801
817
|
* @param options - The options for sending the soundboard sound
|
|
802
818
|
*/
|
|
803
819
|
async sendSoundboardSound(channelId, body, { signal } = {}) {
|
|
804
|
-
|
|
820
|
+
await this.rest.post(import_v103.Routes.sendSoundboardSound(channelId), {
|
|
805
821
|
body,
|
|
806
822
|
signal
|
|
807
823
|
});
|
|
@@ -842,6 +858,7 @@ var GatewayAPI = class {
|
|
|
842
858
|
constructor(rest) {
|
|
843
859
|
this.rest = rest;
|
|
844
860
|
}
|
|
861
|
+
rest;
|
|
845
862
|
static {
|
|
846
863
|
__name(this, "GatewayAPI");
|
|
847
864
|
}
|
|
@@ -878,6 +895,7 @@ var VoiceAPI = class {
|
|
|
878
895
|
constructor(rest) {
|
|
879
896
|
this.rest = rest;
|
|
880
897
|
}
|
|
898
|
+
rest;
|
|
881
899
|
static {
|
|
882
900
|
__name(this, "VoiceAPI");
|
|
883
901
|
}
|
|
@@ -949,6 +967,7 @@ var GuildsAPI = class {
|
|
|
949
967
|
constructor(rest) {
|
|
950
968
|
this.rest = rest;
|
|
951
969
|
}
|
|
970
|
+
rest;
|
|
952
971
|
static {
|
|
953
972
|
__name(this, "GuildsAPI");
|
|
954
973
|
}
|
|
@@ -1992,6 +2011,18 @@ var GuildsAPI = class {
|
|
|
1992
2011
|
signal
|
|
1993
2012
|
});
|
|
1994
2013
|
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Fetches role member counts for a guild.
|
|
2016
|
+
*
|
|
2017
|
+
* @see {@link https://docs.discord.com/developers/resources/guild#get-guild-role-member-counts}
|
|
2018
|
+
* @param guildId - The id of the guild to fetch role member counts for
|
|
2019
|
+
* @param options - The options for fetching role member counts
|
|
2020
|
+
*/
|
|
2021
|
+
async getRoleMemberCounts(guildId, { signal } = {}) {
|
|
2022
|
+
return this.rest.get(import_v106.Routes.guildRoleMemberCounts(guildId), {
|
|
2023
|
+
signal
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
1995
2026
|
};
|
|
1996
2027
|
|
|
1997
2028
|
// src/api/interactions.ts
|
|
@@ -2002,6 +2033,8 @@ var InteractionsAPI = class {
|
|
|
2002
2033
|
this.rest = rest;
|
|
2003
2034
|
this.webhooks = webhooks;
|
|
2004
2035
|
}
|
|
2036
|
+
rest;
|
|
2037
|
+
webhooks;
|
|
2005
2038
|
static {
|
|
2006
2039
|
__name(this, "InteractionsAPI");
|
|
2007
2040
|
}
|
|
@@ -2174,6 +2207,7 @@ var InvitesAPI = class {
|
|
|
2174
2207
|
constructor(rest) {
|
|
2175
2208
|
this.rest = rest;
|
|
2176
2209
|
}
|
|
2210
|
+
rest;
|
|
2177
2211
|
static {
|
|
2178
2212
|
__name(this, "InvitesAPI");
|
|
2179
2213
|
}
|
|
@@ -2210,6 +2244,7 @@ var MonetizationAPI = class {
|
|
|
2210
2244
|
constructor(rest) {
|
|
2211
2245
|
this.rest = rest;
|
|
2212
2246
|
}
|
|
2247
|
+
rest;
|
|
2213
2248
|
static {
|
|
2214
2249
|
__name(this, "MonetizationAPI");
|
|
2215
2250
|
}
|
|
@@ -2322,6 +2357,7 @@ var OAuth2API = class {
|
|
|
2322
2357
|
constructor(rest) {
|
|
2323
2358
|
this.rest = rest;
|
|
2324
2359
|
}
|
|
2360
|
+
rest;
|
|
2325
2361
|
static {
|
|
2326
2362
|
__name(this, "OAuth2API");
|
|
2327
2363
|
}
|
|
@@ -2444,6 +2480,7 @@ var PollAPI = class {
|
|
|
2444
2480
|
constructor(rest) {
|
|
2445
2481
|
this.rest = rest;
|
|
2446
2482
|
}
|
|
2483
|
+
rest;
|
|
2447
2484
|
static {
|
|
2448
2485
|
__name(this, "PollAPI");
|
|
2449
2486
|
}
|
|
@@ -2484,6 +2521,7 @@ var RoleConnectionsAPI = class {
|
|
|
2484
2521
|
constructor(rest) {
|
|
2485
2522
|
this.rest = rest;
|
|
2486
2523
|
}
|
|
2524
|
+
rest;
|
|
2487
2525
|
static {
|
|
2488
2526
|
__name(this, "RoleConnectionsAPI");
|
|
2489
2527
|
}
|
|
@@ -2521,6 +2559,7 @@ var SoundboardSoundsAPI = class {
|
|
|
2521
2559
|
constructor(rest) {
|
|
2522
2560
|
this.rest = rest;
|
|
2523
2561
|
}
|
|
2562
|
+
rest;
|
|
2524
2563
|
static {
|
|
2525
2564
|
__name(this, "SoundboardSoundsAPI");
|
|
2526
2565
|
}
|
|
@@ -2543,6 +2582,7 @@ var StageInstancesAPI = class {
|
|
|
2543
2582
|
constructor(rest) {
|
|
2544
2583
|
this.rest = rest;
|
|
2545
2584
|
}
|
|
2585
|
+
rest;
|
|
2546
2586
|
static {
|
|
2547
2587
|
__name(this, "StageInstancesAPI");
|
|
2548
2588
|
}
|
|
@@ -2603,6 +2643,7 @@ var StickersAPI = class {
|
|
|
2603
2643
|
constructor(rest) {
|
|
2604
2644
|
this.rest = rest;
|
|
2605
2645
|
}
|
|
2646
|
+
rest;
|
|
2606
2647
|
static {
|
|
2607
2648
|
__name(this, "StickersAPI");
|
|
2608
2649
|
}
|
|
@@ -2653,6 +2694,7 @@ var ThreadsAPI = class {
|
|
|
2653
2694
|
constructor(rest) {
|
|
2654
2695
|
this.rest = rest;
|
|
2655
2696
|
}
|
|
2697
|
+
rest;
|
|
2656
2698
|
static {
|
|
2657
2699
|
__name(this, "ThreadsAPI");
|
|
2658
2700
|
}
|
|
@@ -2728,6 +2770,7 @@ var UsersAPI = class {
|
|
|
2728
2770
|
constructor(rest) {
|
|
2729
2771
|
this.rest = rest;
|
|
2730
2772
|
}
|
|
2773
|
+
rest;
|
|
2731
2774
|
static {
|
|
2732
2775
|
__name(this, "UsersAPI");
|
|
2733
2776
|
}
|
|
@@ -2865,6 +2908,7 @@ var WebhooksAPI = class {
|
|
|
2865
2908
|
constructor(rest) {
|
|
2866
2909
|
this.rest = rest;
|
|
2867
2910
|
}
|
|
2911
|
+
rest;
|
|
2868
2912
|
static {
|
|
2869
2913
|
__name(this, "WebhooksAPI");
|
|
2870
2914
|
}
|
|
@@ -3047,6 +3091,7 @@ var API = class {
|
|
|
3047
3091
|
this.webhooks = new WebhooksAPI(rest);
|
|
3048
3092
|
this.interactions = new InteractionsAPI(rest, this.webhooks);
|
|
3049
3093
|
}
|
|
3094
|
+
rest;
|
|
3050
3095
|
static {
|
|
3051
3096
|
__name(this, "API");
|
|
3052
3097
|
}
|
|
@@ -3089,7 +3134,7 @@ __name(withFiles, "withFiles");
|
|
|
3089
3134
|
|
|
3090
3135
|
// src/http-only/index.ts
|
|
3091
3136
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
3092
|
-
var version = "2.
|
|
3137
|
+
var version = "2.6.0";
|
|
3093
3138
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3094
3139
|
0 && (module.exports = {
|
|
3095
3140
|
API,
|