@discordjs/core 3.0.0-dev.1759579293-cf89260c9 → 3.0.0-dev.1759622511-ffbb7b693

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.
@@ -573,6 +573,25 @@ declare class ChannelsAPI {
573
573
  sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
574
574
  }
575
575
 
576
+ declare class GatewayAPI {
577
+ private readonly rest;
578
+ constructor(rest: REST);
579
+ /**
580
+ * Gets gateway information.
581
+ *
582
+ * @see {@link https://discord.com/developers/docs/events/gateway#get-gateway}
583
+ * @param options - The options for fetching the gateway information
584
+ */
585
+ get({ signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGatewayInfo>;
586
+ /**
587
+ * Gets gateway information with additional metadata.
588
+ *
589
+ * @see {@link https://discord.com/developers/docs/events/gateway#get-gateway-bot}
590
+ * @param options - The options for fetching the gateway information
591
+ */
592
+ getBot({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGatewayBotInfo>;
593
+ }
594
+
576
595
  interface CreateStickerOptions extends Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> {
577
596
  file: RawFile;
578
597
  }
@@ -2162,6 +2181,7 @@ declare class API {
2162
2181
  readonly applicationCommands: ApplicationCommandsAPI;
2163
2182
  readonly applications: ApplicationsAPI;
2164
2183
  readonly channels: ChannelsAPI;
2184
+ readonly gateway: GatewayAPI;
2165
2185
  readonly guilds: GuildsAPI;
2166
2186
  readonly interactions: InteractionsAPI;
2167
2187
  readonly invites: InvitesAPI;
@@ -2216,4 +2236,4 @@ declare function withFiles(files: DescriptiveRawFile[], options: APIInteractionR
2216
2236
  */
2217
2237
  declare const version: string;
2218
2238
 
2219
- export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, 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, GuildsAPI, InteractionsAPI, InvitesAPI, MonetizationAPI, OAuth2API, PollAPI, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };
2239
+ export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, 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, GatewayAPI, GuildsAPI, InteractionsAPI, InvitesAPI, MonetizationAPI, OAuth2API, PollAPI, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };
@@ -573,6 +573,25 @@ declare class ChannelsAPI {
573
573
  sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
574
574
  }
575
575
 
576
+ declare class GatewayAPI {
577
+ private readonly rest;
578
+ constructor(rest: REST);
579
+ /**
580
+ * Gets gateway information.
581
+ *
582
+ * @see {@link https://discord.com/developers/docs/events/gateway#get-gateway}
583
+ * @param options - The options for fetching the gateway information
584
+ */
585
+ get({ signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGatewayInfo>;
586
+ /**
587
+ * Gets gateway information with additional metadata.
588
+ *
589
+ * @see {@link https://discord.com/developers/docs/events/gateway#get-gateway-bot}
590
+ * @param options - The options for fetching the gateway information
591
+ */
592
+ getBot({ auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIGatewayBotInfo>;
593
+ }
594
+
576
595
  interface CreateStickerOptions extends Omit<RESTPostAPIGuildStickerFormDataBody, 'file'> {
577
596
  file: RawFile;
578
597
  }
@@ -2162,6 +2181,7 @@ declare class API {
2162
2181
  readonly applicationCommands: ApplicationCommandsAPI;
2163
2182
  readonly applications: ApplicationsAPI;
2164
2183
  readonly channels: ChannelsAPI;
2184
+ readonly gateway: GatewayAPI;
2165
2185
  readonly guilds: GuildsAPI;
2166
2186
  readonly interactions: InteractionsAPI;
2167
2187
  readonly invites: InvitesAPI;
@@ -2216,4 +2236,4 @@ declare function withFiles(files: DescriptiveRawFile[], options: APIInteractionR
2216
2236
  */
2217
2237
  declare const version: string;
2218
2238
 
2219
- export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, 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, GuildsAPI, InteractionsAPI, InvitesAPI, MonetizationAPI, OAuth2API, PollAPI, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };
2239
+ export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, 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, GatewayAPI, GuildsAPI, InteractionsAPI, InvitesAPI, MonetizationAPI, OAuth2API, PollAPI, RoleConnectionsAPI, SoundboardSoundsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };