@discordjs/core 3.0.0-dev.1759579293-cf89260c9 → 3.0.0-dev.1759708922-cf88ef91f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http-only.d.mts +21 -1
- package/dist/http-only.d.ts +21 -1
- package/dist/http-only.js +203 -164
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +195 -157
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +210 -171
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +195 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -576,6 +576,25 @@ declare class ChannelsAPI {
|
|
|
576
576
|
sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
+
declare class GatewayAPI {
|
|
580
|
+
private readonly rest;
|
|
581
|
+
constructor(rest: REST);
|
|
582
|
+
/**
|
|
583
|
+
* Gets gateway information.
|
|
584
|
+
*
|
|
585
|
+
* @see {@link https://discord.com/developers/docs/events/gateway#get-gateway}
|
|
586
|
+
* @param options - The options for fetching the gateway information
|
|
587
|
+
*/
|
|
588
|
+
get({ signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGatewayInfo>;
|
|
589
|
+
/**
|
|
590
|
+
* Gets gateway information with additional metadata.
|
|
591
|
+
*
|
|
592
|
+
* @see {@link https://discord.com/developers/docs/events/gateway#get-gateway-bot}
|
|
593
|
+
* @param options - The options for fetching the gateway information
|
|
594
|
+
*/
|
|
595
|
+
getBot({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGatewayBotInfo>;
|
|
596
|
+
}
|
|
597
|
+
|
|
579
598
|
interface CreateStickerOptions extends Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> {
|
|
580
599
|
file: RawFile;
|
|
581
600
|
}
|
|
@@ -2165,6 +2184,7 @@ declare class API {
|
|
|
2165
2184
|
readonly applicationCommands: ApplicationCommandsAPI;
|
|
2166
2185
|
readonly applications: ApplicationsAPI;
|
|
2167
2186
|
readonly channels: ChannelsAPI;
|
|
2187
|
+
readonly gateway: GatewayAPI;
|
|
2168
2188
|
readonly guilds: GuildsAPI;
|
|
2169
2189
|
readonly interactions: InteractionsAPI;
|
|
2170
2190
|
readonly invites: InvitesAPI;
|
|
@@ -2434,4 +2454,4 @@ declare function withFiles(files: DescriptiveRawFile[], options: APIInteractionR
|
|
|
2434
2454
|
*/
|
|
2435
2455
|
declare const version: string;
|
|
2436
2456
|
|
|
2437
|
-
export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, Client, type ClientOptions, type CreateAutocompleteResponseOptions, type CreateInteractionDeferResponseOptions, type CreateInteractionFollowUpResponseOptions, type CreateInteractionResponseOptions, type CreateInteractionUpdateMessageResponseOptions, type CreateMessageOptions, type CreateModalResponseOptions, type CreateStickerOptions, type CreateWebhookMessageOptions, type DescriptiveRawFile, type EditInteractionResponseOptions, type EditMessageOptions, type EditWebhookMessageOptions, type Gateway, GuildsAPI, InteractionsAPI, type IntrinsicProps, InvitesAPI, type ManagerShardEventsMap, type MappedEvents, MonetizationAPI, OAuth2API, PollAPI, type RequestGuildMembersResult, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, type ToEventProps, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };
|
|
2457
|
+
export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, Client, type ClientOptions, type CreateAutocompleteResponseOptions, type CreateInteractionDeferResponseOptions, type CreateInteractionFollowUpResponseOptions, type CreateInteractionResponseOptions, type CreateInteractionUpdateMessageResponseOptions, type CreateMessageOptions, type CreateModalResponseOptions, type CreateStickerOptions, type CreateWebhookMessageOptions, type DescriptiveRawFile, type EditInteractionResponseOptions, type EditMessageOptions, type EditWebhookMessageOptions, type Gateway, GatewayAPI, GuildsAPI, InteractionsAPI, type IntrinsicProps, InvitesAPI, type ManagerShardEventsMap, type MappedEvents, MonetizationAPI, OAuth2API, PollAPI, type RequestGuildMembersResult, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, type ToEventProps, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };
|
package/dist/index.d.ts
CHANGED
|
@@ -576,6 +576,25 @@ declare class ChannelsAPI {
|
|
|
576
576
|
sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
+
declare class GatewayAPI {
|
|
580
|
+
private readonly rest;
|
|
581
|
+
constructor(rest: REST);
|
|
582
|
+
/**
|
|
583
|
+
* Gets gateway information.
|
|
584
|
+
*
|
|
585
|
+
* @see {@link https://discord.com/developers/docs/events/gateway#get-gateway}
|
|
586
|
+
* @param options - The options for fetching the gateway information
|
|
587
|
+
*/
|
|
588
|
+
get({ signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGatewayInfo>;
|
|
589
|
+
/**
|
|
590
|
+
* Gets gateway information with additional metadata.
|
|
591
|
+
*
|
|
592
|
+
* @see {@link https://discord.com/developers/docs/events/gateway#get-gateway-bot}
|
|
593
|
+
* @param options - The options for fetching the gateway information
|
|
594
|
+
*/
|
|
595
|
+
getBot({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGatewayBotInfo>;
|
|
596
|
+
}
|
|
597
|
+
|
|
579
598
|
interface CreateStickerOptions extends Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> {
|
|
580
599
|
file: RawFile;
|
|
581
600
|
}
|
|
@@ -2165,6 +2184,7 @@ declare class API {
|
|
|
2165
2184
|
readonly applicationCommands: ApplicationCommandsAPI;
|
|
2166
2185
|
readonly applications: ApplicationsAPI;
|
|
2167
2186
|
readonly channels: ChannelsAPI;
|
|
2187
|
+
readonly gateway: GatewayAPI;
|
|
2168
2188
|
readonly guilds: GuildsAPI;
|
|
2169
2189
|
readonly interactions: InteractionsAPI;
|
|
2170
2190
|
readonly invites: InvitesAPI;
|
|
@@ -2434,4 +2454,4 @@ declare function withFiles(files: DescriptiveRawFile[], options: APIInteractionR
|
|
|
2434
2454
|
*/
|
|
2435
2455
|
declare const version: string;
|
|
2436
2456
|
|
|
2437
|
-
export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, Client, type ClientOptions, type CreateAutocompleteResponseOptions, type CreateInteractionDeferResponseOptions, type CreateInteractionFollowUpResponseOptions, type CreateInteractionResponseOptions, type CreateInteractionUpdateMessageResponseOptions, type CreateMessageOptions, type CreateModalResponseOptions, type CreateStickerOptions, type CreateWebhookMessageOptions, type DescriptiveRawFile, type EditInteractionResponseOptions, type EditMessageOptions, type EditWebhookMessageOptions, type Gateway, GuildsAPI, InteractionsAPI, type IntrinsicProps, InvitesAPI, type ManagerShardEventsMap, type MappedEvents, MonetizationAPI, OAuth2API, PollAPI, type RequestGuildMembersResult, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, type ToEventProps, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };
|
|
2457
|
+
export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, Client, type ClientOptions, type CreateAutocompleteResponseOptions, type CreateInteractionDeferResponseOptions, type CreateInteractionFollowUpResponseOptions, type CreateInteractionResponseOptions, type CreateInteractionUpdateMessageResponseOptions, type CreateMessageOptions, type CreateModalResponseOptions, type CreateStickerOptions, type CreateWebhookMessageOptions, type DescriptiveRawFile, type EditInteractionResponseOptions, type EditMessageOptions, type EditWebhookMessageOptions, type Gateway, GatewayAPI, GuildsAPI, InteractionsAPI, type IntrinsicProps, InvitesAPI, type ManagerShardEventsMap, type MappedEvents, MonetizationAPI, OAuth2API, PollAPI, type RequestGuildMembersResult, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, type ToEventProps, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };
|