@discordjs/core 2.1.0-dev.1732709132-97ffa201a → 2.1.0-dev.1738965220-519aa3abe

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.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, RESTPostAPIGuildForumThreadsJSONBody, RESTPostAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTPatchAPIChannelJSONBody, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTPostAPIChannelInviteJSONBody, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelThreadsJSONBody, APIThreadChannel, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelUsersThreadsArchivedResult, RESTPostAPIChannelWebhookJSONBody, RESTGetAPIChannelWebhooksResult, RESTPutAPIChannelPermissionJSONBody, RESTPostAPISoundboardSendSoundJSONBody, 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, RESTPatchAPIGuildMemberJSONBody, RESTPostAPIGuildTemplatesJSONBody, RESTGetAPIGuildWebhooksResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPutAPIGuildOnboardingJSONBody, RESTGetAPIGuildSoundboardSoundsResult, RESTPostAPIGuildSoundboardSoundJSONBody, RESTPatchAPIGuildSoundboardSoundJSONBody, RESTPatchAPIWebhookJSONBody, RESTPostAPIWebhookWithTokenJSONBody, RESTPostAPIWebhookWithTokenQuery, RESTPostAPIWebhookWithTokenWaitResult, RESTPostAPIWebhookWithTokenSlackQuery, RESTPostAPIWebhookWithTokenGitHubQuery, RESTGetAPIWebhookWithTokenMessageQuery, RESTPatchAPIWebhookWithTokenMessageJSONBody, APIInteractionResponseCallbackData, RESTPostAPIInteractionCallbackQuery, RESTPostAPIInteractionCallbackWithResponseResult, APIInteractionResponseDeferredChannelMessageWithSource, APICommandAutocompleteInteractionResponseCallbackData, APIModalInteractionResponseCallbackData, RESTGetAPIInviteQuery, RESTGetAPISKUsResult, RESTGetAPISKUSubscriptionsQuery, RESTGetAPISKUSubscriptionsResult, RESTGetAPIEntitlementsQuery, RESTGetAPIEntitlementsResult, RESTPostAPIEntitlementJSONBody, RESTOAuth2AuthorizationQuery, RESTPostOAuth2AccessTokenURLEncodedData, RESTPostOAuth2AccessTokenResult, RESTPostOAuth2RefreshTokenURLEncodedData, RESTPostOAuth2ClientCredentialsURLEncodedData, RESTGetAPIOAuth2CurrentApplicationResult, RESTGetAPIOAuth2CurrentAuthorizationResult, RESTPostOAuth2TokenRevocationQuery, RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTGetAPIApplicationRoleConnectionMetadataResult, RESTPutAPIApplicationRoleConnectionMetadataJSONBody, RESTPutAPIApplicationRoleConnectionMetadataResult, RESTGetAPISoundboardDefaultSoundsResult, RESTPostAPIStageInstanceJSONBody, RESTPatchAPIStageInstanceJSONBody, RESTGetStickerPacksResult, APIThreadMember, RESTGetAPIChannelThreadMembersResult, RESTGetAPICurrentUserGuildsQuery, RESTGetAPICurrentUserGuildsResult, RESTPatchAPICurrentUserJSONBody, RESTGetAPICurrentUserConnectionsResult, RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, RESTGetAPIVoiceRegionsResult, GatewaySendPayload, GatewayDispatchEvents, GatewayApplicationCommandPermissionsUpdateDispatchData, GatewayAutoModerationActionExecutionDispatchData, GatewayAutoModerationRuleCreateDispatchData, GatewayAutoModerationRuleDeleteDispatchData, GatewayAutoModerationRuleUpdateDispatchData, GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData, GatewayEntitlementCreateDispatchData, GatewayEntitlementDeleteDispatchData, GatewayEntitlementUpdateDispatchData, GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildSoundboardSoundCreateDispatch, GatewayGuildSoundboardSoundDeleteDispatch, GatewayGuildSoundboardSoundUpdateDispatch, GatewayGuildSoundboardSoundsUpdateDispatch, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData, GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData, GatewayInteractionCreateDispatchData, GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData, GatewayMessageCreateDispatchData, GatewayMessageDeleteDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData, GatewayPresenceUpdateDispatchData, GatewayReadyDispatchData, GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData, GatewayStageInstanceUpdateDispatchData, GatewaySubscriptionCreateDispatchData, GatewaySubscriptionDeleteDispatchData, GatewaySubscriptionUpdateDispatchData, GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData, GatewayTypingStartDispatchData, GatewayUserUpdateDispatchData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData, GatewayWebhooksUpdateDispatchData, GatewayRequestGuildMembersData, GatewayVoiceStateUpdateData, GatewayPresenceUpdateData } 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, RESTPostAPIGuildForumThreadsJSONBody, RESTPostAPIChannelMessageJSONBody, RESTPatchAPIChannelMessageJSONBody, RESTGetAPIChannelMessageReactionUsersQuery, RESTGetAPIChannelMessageReactionUsersResult, RESTPatchAPIChannelJSONBody, RESTGetAPIChannelMessagesQuery, RESTGetAPIChannelMessagesResult, RESTGetAPIChannelPinsResult, RESTPostAPIChannelInviteJSONBody, RESTGetAPIChannelInvitesResult, RESTPostAPIChannelThreadsJSONBody, APIThreadChannel, RESTGetAPIChannelThreadsArchivedQuery, RESTGetAPIChannelUsersThreadsArchivedResult, RESTPostAPIChannelWebhookJSONBody, RESTGetAPIChannelWebhooksResult, RESTPutAPIChannelPermissionJSONBody, 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, RESTPatchAPIGuildMemberJSONBody, RESTPostAPIGuildTemplatesJSONBody, RESTGetAPIGuildWebhooksResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPutAPIGuildOnboardingJSONBody, RESTPatchAPIWebhookJSONBody, RESTPostAPIWebhookWithTokenJSONBody, RESTPostAPIWebhookWithTokenQuery, RESTPostAPIWebhookWithTokenWaitResult, RESTPostAPIWebhookWithTokenSlackQuery, RESTPostAPIWebhookWithTokenGitHubQuery, RESTGetAPIWebhookWithTokenMessageQuery, RESTPatchAPIWebhookWithTokenMessageJSONBody, APIInteractionResponseCallbackData, APIInteractionResponseDeferredChannelMessageWithSource, APICommandAutocompleteInteractionResponseCallbackData, APIModalInteractionResponseCallbackData, RESTGetAPIInviteQuery, RESTGetAPISKUsResult, RESTGetAPIEntitlementsQuery, RESTGetAPIEntitlementsResult, RESTPostAPIEntitlementJSONBody, RESTOAuth2AuthorizationQuery, RESTPostOAuth2AccessTokenURLEncodedData, RESTPostOAuth2AccessTokenResult, RESTPostOAuth2RefreshTokenURLEncodedData, RESTPostOAuth2ClientCredentialsURLEncodedData, RESTGetAPIOAuth2CurrentApplicationResult, RESTGetAPIOAuth2CurrentAuthorizationResult, RESTPostOAuth2TokenRevocationQuery, RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTGetAPIApplicationRoleConnectionMetadataResult, RESTPutAPIApplicationRoleConnectionMetadataJSONBody, RESTPutAPIApplicationRoleConnectionMetadataResult, RESTPostAPIStageInstanceJSONBody, RESTPatchAPIStageInstanceJSONBody, RESTGetStickerPacksResult, APIThreadMember, RESTGetAPIChannelThreadMembersResult, RESTGetAPICurrentUserGuildsQuery, RESTGetAPICurrentUserGuildsResult, RESTPatchAPICurrentUserJSONBody, RESTGetAPICurrentUserConnectionsResult, RESTPutAPICurrentUserApplicationRoleConnectionJSONBody, RESTGetAPIVoiceRegionsResult, GatewaySendPayload, GatewayDispatchEvents, GatewayApplicationCommandPermissionsUpdateDispatchData, GatewayAutoModerationActionExecutionDispatchData, GatewayAutoModerationRuleCreateDispatchData, GatewayAutoModerationRuleDeleteDispatchData, GatewayAutoModerationRuleUpdateDispatchData, GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData, GatewayEntitlementCreateDispatchData, GatewayEntitlementDeleteDispatchData, GatewayEntitlementUpdateDispatchData, GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData, GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData, GatewayInteractionCreateDispatchData, GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData, GatewayMessageCreateDispatchData, GatewayMessageDeleteDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData, GatewayPresenceUpdateDispatchData, GatewayReadyDispatchData, GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData, GatewayStageInstanceUpdateDispatchData, GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData, GatewayTypingStartDispatchData, GatewayUserUpdateDispatchData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData, GatewayWebhooksUpdateDispatchData, GatewayRequestGuildMembersData, GatewayVoiceStateUpdateData, GatewayPresenceUpdateData } from 'discord-api-types/v10';
4
4
  export * from 'discord-api-types/v10';
5
5
  import { AsyncEventEmitter } from '@vladfrangu/async_event_emitter';
6
6
  import { Awaitable } from '@discordjs/util';
@@ -261,17 +261,9 @@ declare class ChannelsAPI {
261
261
  * @see {@link https://discord.com/developers/docs/resources/message#get-reactions}
262
262
  * @param channelId - The id of the channel the message is in
263
263
  * @param messageId - The id of the message to get the reactions for
264
- * @param emoji - The emoji to get the reactions for. URL encoding happens internally
264
+ * @param emoji - The emoji to get the reactions for
265
265
  * @param query - The query options for fetching the reactions
266
266
  * @param options - The options for fetching the message reactions
267
- * @example
268
- * ```ts
269
- * // Unicode.
270
- * await api.channels.getMessageReactions('1234567890', '1234567890', '👍');
271
- *
272
- * // Custom emoji.
273
- * await api.channels.getMessageReactions('1234567890', '1234567890', 'emoji_name:1234567890');
274
- * ```
275
267
  */
276
268
  getMessageReactions(channelId: Snowflake, messageId: Snowflake, emoji: string, query?: RESTGetAPIChannelMessageReactionUsersQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIChannelMessageReactionUsersResult>;
277
269
  /**
@@ -280,16 +272,8 @@ declare class ChannelsAPI {
280
272
  * @see {@link https://discord.com/developers/docs/resources/message#delete-own-reaction}
281
273
  * @param channelId - The id of the channel the message is in
282
274
  * @param messageId - The id of the message to delete the reaction for
283
- * @param emoji - The emoji to delete the reaction for. URL encoding happens internally
275
+ * @param emoji - The emoji to delete the reaction for
284
276
  * @param options - The options for deleting the reaction
285
- * @example
286
- * ```ts
287
- * // Unicode.
288
- * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', '👍');
289
- *
290
- * // Custom emoji.
291
- * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
292
- * ```
293
277
  */
294
278
  deleteOwnMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
295
279
  /**
@@ -298,17 +282,9 @@ declare class ChannelsAPI {
298
282
  * @see {@link https://discord.com/developers/docs/resources/message#delete-user-reaction}
299
283
  * @param channelId - The id of the channel the message is in
300
284
  * @param messageId - The id of the message to delete the reaction for
301
- * @param emoji - The emoji to delete the reaction for. URL encoding happens internally
285
+ * @param emoji - The emoji to delete the reaction for
302
286
  * @param userId - The id of the user to delete the reaction for
303
287
  * @param options - The options for deleting the reaction
304
- * @example
305
- * ```ts
306
- * // Unicode.
307
- * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', '👍', '1234567890');
308
- *
309
- * // Custom emoji.
310
- * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890', '1234567890');
311
- * ```
312
288
  */
313
289
  deleteUserMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
314
290
  /**
@@ -326,16 +302,8 @@ declare class ChannelsAPI {
326
302
  * @see {@link https://discord.com/developers/docs/resources/message#delete-all-reactions-for-emoji}
327
303
  * @param channelId - The id of the channel the message is in
328
304
  * @param messageId - The id of the message to delete the reactions for
329
- * @param emoji - The emoji to delete the reactions for. URL encoding happens internally
305
+ * @param emoji - The emoji to delete the reactions for
330
306
  * @param options - The options for deleting the reactions
331
- * @example
332
- * ```ts
333
- * // Unicode.
334
- * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', '👍');
335
- *
336
- * // Custom emoji.
337
- * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', 'emoji_name:1234567890');
338
- * ```
339
307
  */
340
308
  deleteAllMessageReactionsForEmoji(channelId: Snowflake, messageId: Snowflake, emoji: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
341
309
  /**
@@ -344,16 +312,8 @@ declare class ChannelsAPI {
344
312
  * @see {@link https://discord.com/developers/docs/resources/message#create-reaction}
345
313
  * @param channelId - The id of the channel the message is in
346
314
  * @param messageId - The id of the message to add the reaction to
347
- * @param emoji - The emoji to add the reaction with. URL encoding happens internally
315
+ * @param emoji - The emoji to add the reaction with
348
316
  * @param options - The options for adding the reaction
349
- * @example
350
- * ```ts
351
- * // Unicode.
352
- * await api.channels.addMessageReaction('1234567890', '1234567890', '👍');
353
- *
354
- * // Custom emoji.
355
- * await api.channels.addMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
356
- * ```
357
317
  */
358
318
  addMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
359
319
  /**
@@ -561,15 +521,6 @@ declare class ChannelsAPI {
561
521
  * @param options - The options for deleting the permission overwrite
562
522
  */
563
523
  deletePermissionOverwrite(channelId: Snowflake, overwriteId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
564
- /**
565
- * Sends a soundboard sound in a channel
566
- *
567
- * @see {@link https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound}
568
- * @param channelId - The id of the channel to send the soundboard sound in
569
- * @param body - The data for sending the soundboard sound
570
- * @param options - The options for sending the soundboard sound
571
- */
572
- sendSoundboardSound(channelId: Snowflake, body: RESTPostAPISoundboardSendSoundJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
573
524
  }
574
525
 
575
526
  declare class GuildsAPI {
@@ -1256,51 +1207,6 @@ declare class GuildsAPI {
1256
1207
  * @param options - The options for editing the guild onboarding
1257
1208
  */
1258
1209
  editOnboarding(guildId: Snowflake, body: RESTPutAPIGuildOnboardingJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildOnboarding>;
1259
- /**
1260
- * Fetches all the soundboard sounds for a guild
1261
- *
1262
- * @see {@link https://discord.com/developers/docs/resources/soundboard#list-guild-soundboard-sounds}
1263
- * @param guildId - The id of the guild to fetch the soundboard sounds for
1264
- * @param options - The options for fetching the soundboard sounds
1265
- */
1266
- getSoundboardSounds(guildId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPIGuildSoundboardSoundsResult>;
1267
- /**
1268
- * Fetches a soundboard sound for a guild
1269
- *
1270
- * @see {@link https://discord.com/developers/docs/resources/soundboard#get-guild-soundboard-sound}
1271
- * @param guildId - The id of the guild to fetch the soundboard sound for
1272
- * @param soundId - The id of the soundboard sound to fetch
1273
- * @param options - The options for fetching the soundboard sound
1274
- */
1275
- getSoundboardSound(guildId: Snowflake, soundId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1276
- /**
1277
- * Creates a new soundboard sound for a guild
1278
- *
1279
- * @see {@link https://discord.com/developers/docs/resources/soundboard#create-guild-soundboard-sound}
1280
- * @param guildId - The id of the guild to create the soundboard sound for
1281
- * @param body - The data for creating the soundboard sound
1282
- * @param options - The options for creating the soundboard sound
1283
- */
1284
- createSoundboardSound(guildId: Snowflake, body: RESTPostAPIGuildSoundboardSoundJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1285
- /**
1286
- * Edits a soundboard sound for a guild
1287
- *
1288
- * @see {@link https://discord.com/developers/docs/resources/soundboard#modify-guild-soundboard-sound}
1289
- * @param guildId - The id of the guild to edit the soundboard sound for
1290
- * @param soundId - The id of the soundboard sound to edit
1291
- * @param body - The data for editing the soundboard sound
1292
- * @param options - The options for editing the soundboard sound
1293
- */
1294
- editSoundboardSound(guildId: Snowflake, soundId: Snowflake, body: RESTPatchAPIGuildSoundboardSoundJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APISoundboardSound>;
1295
- /**
1296
- * Deletes a soundboard sound for a guild
1297
- *
1298
- * @see {@link https://discord.com/developers/docs/resources/soundboard#delete-guild-soundboard-sound}
1299
- * @param guildId - The id of the guild to delete the soundboard sound for
1300
- * @param soundId - The id of the soundboard sound to delete
1301
- * @param options - The options for deleting the soundboard sound
1302
- */
1303
- deleteSoundboardSound(guildId: Snowflake, soundId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<void>;
1304
1210
  }
1305
1211
 
1306
1212
  declare class WebhooksAPI {
@@ -1432,19 +1338,6 @@ declare class InteractionsAPI {
1432
1338
  private readonly rest;
1433
1339
  private readonly webhooks;
1434
1340
  constructor(rest: REST, webhooks: WebhooksAPI);
1435
- /**
1436
- * Replies to an interaction and returns an interaction callback object
1437
- *
1438
- * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1439
- * @param interactionId - The id of the interaction
1440
- * @param interactionToken - The token of the interaction
1441
- * @param body - The callback data for replying
1442
- * @param options - The options for replying
1443
- */
1444
- reply(interactionId: Snowflake, interactionToken: string, body: APIInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1445
- files?: RawFile[];
1446
- with_response: true;
1447
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1448
1341
  /**
1449
1342
  * Replies to an interaction
1450
1343
  *
@@ -1454,58 +1347,28 @@ declare class InteractionsAPI {
1454
1347
  * @param body - The callback data for replying
1455
1348
  * @param options - The options for replying
1456
1349
  */
1457
- reply(interactionId: Snowflake, interactionToken: string, body: APIInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1350
+ reply(interactionId: Snowflake, interactionToken: string, { files, ...data }: APIInteractionResponseCallbackData & {
1458
1351
  files?: RawFile[];
1459
- with_response?: false;
1460
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1461
- /**
1462
- * Defers the reply to an interaction and returns an interaction callback object
1463
- *
1464
- * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1465
- * @param interactionId - The id of the interaction
1466
- * @param interactionToken - The token of the interaction
1467
- * @param body - The callback data for deferring the reply
1468
- * @param options - The options for deferring
1469
- */
1470
- defer(interactionId: Snowflake, interactionToken: string, body: APIInteractionResponseDeferredChannelMessageWithSource['data'] & RESTPostAPIInteractionCallbackQuery & {
1471
- with_response: true;
1472
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1352
+ }, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1473
1353
  /**
1474
1354
  * Defers the reply to an interaction
1475
1355
  *
1476
1356
  * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1477
1357
  * @param interactionId - The id of the interaction
1478
1358
  * @param interactionToken - The token of the interaction
1479
- * @param body - The callback data for deferring the reply
1359
+ * @param data - The data for deferring the reply
1480
1360
  * @param options - The options for deferring
1481
1361
  */
1482
- defer(interactionId: Snowflake, interactionToken: string, body?: APIInteractionResponseDeferredChannelMessageWithSource['data'] & RESTPostAPIInteractionCallbackQuery & {
1483
- with_response?: false;
1484
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1485
- /**
1486
- * Defers an update from a message component interaction and returns an interaction callback object
1487
- *
1488
- * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1489
- * @param interactionId - The id of the interaction
1490
- * @param interactionToken - The token of the interaction
1491
- * @param body - The callback data for deferring the update
1492
- * @param options - The options for deferring
1493
- */
1494
- deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body: RESTPostAPIInteractionCallbackQuery & {
1495
- with_response: true;
1496
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1362
+ defer(interactionId: Snowflake, interactionToken: string, data?: APIInteractionResponseDeferredChannelMessageWithSource['data'], { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1497
1363
  /**
1498
1364
  * Defers an update from a message component interaction
1499
1365
  *
1500
1366
  * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1501
1367
  * @param interactionId - The id of the interaction
1502
1368
  * @param interactionToken - The token of the interaction
1503
- * @param body - The callback data for deferring the update
1504
1369
  * @param options - The options for deferring
1505
1370
  */
1506
- deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1507
- with_response?: false;
1508
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1371
+ deferMessageUpdate(interactionId: Snowflake, interactionToken: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1509
1372
  /**
1510
1373
  * Reply to a deferred interaction
1511
1374
  *
@@ -1552,19 +1415,6 @@ declare class InteractionsAPI {
1552
1415
  * @param options - The options for deleting the reply
1553
1416
  */
1554
1417
  deleteReply(applicationId: Snowflake, interactionToken: string, messageId?: Snowflake | '@original', { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1555
- /**
1556
- * Updates the message the component interaction was triggered on and returns an interaction callback object
1557
- *
1558
- * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1559
- * @param interactionId - The id of the interaction
1560
- * @param interactionToken - The token of the interaction
1561
- * @param callbackData - The callback data for updating the interaction
1562
- * @param options - The options for updating the interaction
1563
- */
1564
- updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: APIInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1565
- files?: RawFile[];
1566
- with_response: true;
1567
- }, options: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1568
1418
  /**
1569
1419
  * Updates the message the component interaction was triggered on
1570
1420
  *
@@ -1574,22 +1424,9 @@ declare class InteractionsAPI {
1574
1424
  * @param callbackData - The callback data for updating the interaction
1575
1425
  * @param options - The options for updating the interaction
1576
1426
  */
1577
- updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: APIInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1427
+ updateMessage(interactionId: Snowflake, interactionToken: string, { files, ...data }: APIInteractionResponseCallbackData & {
1578
1428
  files?: RawFile[];
1579
- with_response?: false;
1580
- }, options: Pick<RequestData, 'signal'>): Promise<undefined>;
1581
- /**
1582
- * Sends an autocomplete response to an interaction and returns an interaction callback object
1583
- *
1584
- * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1585
- * @param interactionId - The id of the interaction
1586
- * @param interactionToken - The token of the interaction
1587
- * @param callbackData - The callback data for the autocomplete response
1588
- * @param options - The options for sending the autocomplete response
1589
- */
1590
- createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: APICommandAutocompleteInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1591
- with_response: true;
1592
- }, options?: Pick<RequestData, 'signal'>): Promise<APICommandAutocompleteInteractionResponseCallbackData>;
1429
+ }, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1593
1430
  /**
1594
1431
  * Sends an autocomplete response to an interaction
1595
1432
  *
@@ -1599,21 +1436,7 @@ declare class InteractionsAPI {
1599
1436
  * @param callbackData - The callback data for the autocomplete response
1600
1437
  * @param options - The options for sending the autocomplete response
1601
1438
  */
1602
- createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: APICommandAutocompleteInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1603
- with_response?: false;
1604
- }, options: Pick<RequestData, 'signal'>): Promise<undefined>;
1605
- /**
1606
- * Sends a modal response to an interaction and returns an interaction callback object
1607
- *
1608
- * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1609
- * @param interactionId - The id of the interaction
1610
- * @param interactionToken - The token of the interaction
1611
- * @param callbackData - The modal callback data to send
1612
- * @param options - The options for sending the modal
1613
- */
1614
- createModal(interactionId: Snowflake, interactionToken: string, callbackData: APIModalInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1615
- with_response: true;
1616
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1439
+ createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: APICommandAutocompleteInteractionResponseCallbackData, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1617
1440
  /**
1618
1441
  * Sends a modal response to an interaction
1619
1442
  *
@@ -1623,9 +1446,7 @@ declare class InteractionsAPI {
1623
1446
  * @param callbackData - The modal callback data to send
1624
1447
  * @param options - The options for sending the modal
1625
1448
  */
1626
- createModal(interactionId: Snowflake, interactionToken: string, callbackData: APIModalInteractionResponseCallbackData & RESTPostAPIInteractionCallbackQuery & {
1627
- with_response?: false;
1628
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1449
+ createModal(interactionId: Snowflake, interactionToken: string, callbackData: APIModalInteractionResponseCallbackData, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1629
1450
  /**
1630
1451
  * Sends a premium required response to an interaction
1631
1452
  *
@@ -1633,7 +1454,7 @@ declare class InteractionsAPI {
1633
1454
  * @param interactionId - The id of the interaction
1634
1455
  * @param interactionToken - The token of the interaction
1635
1456
  * @param options - The options for sending the premium required response
1636
- * @deprecated Sending a premium-style button is the new Discord behaviour.
1457
+ * @deprecated Sending a premium-style button is the new Discord behavior.
1637
1458
  */
1638
1459
  sendPremiumRequired(interactionId: Snowflake, interactionToken: string, { signal }?: Pick<RequestData, 'signal'>): Promise<void>;
1639
1460
  }
@@ -1666,33 +1487,14 @@ declare class MonetizationAPI {
1666
1487
  /**
1667
1488
  * Fetches the SKUs for an application.
1668
1489
  *
1669
- * @see {@link https://discord.com/developers/docs/resources/sku#list-skus}
1670
- * @param applicationId - The application id to fetch SKUs for
1490
+ * @see {@link https://discord.com/developers/docs/monetization/skus#list-skus}
1671
1491
  * @param options - The options for fetching the SKUs.
1672
1492
  */
1673
1493
  getSKUs(applicationId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUsResult>;
1674
- /**
1675
- * Fetches subscriptions for an SKU.
1676
- *
1677
- * @see {@link https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions}
1678
- * @param skuId - The SKU id to fetch subscriptions for
1679
- * @param query - The query options for fetching subscriptions
1680
- * @param options - The options for fetching subscriptions
1681
- */
1682
- getSKUSubscriptions(skuId: Snowflake, query: RESTGetAPISKUSubscriptionsQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISKUSubscriptionsResult>;
1683
- /**
1684
- * Fetches a subscription for an SKU.
1685
- *
1686
- * @see {@link https://discord.com/developers/docs/resources/subscription#get-sku-subscription}
1687
- * @param skuId - The SKU id to fetch subscription for
1688
- * @param subscriptionId - The subscription id to fetch
1689
- * @param options - The options for fetching the subscription
1690
- */
1691
- getSKUSubscription(skuId: Snowflake, subscriptionId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APISubscription>;
1692
1494
  /**
1693
1495
  * Fetches the entitlements for an application.
1694
1496
  *
1695
- * @see {@link https://discord.com/developers/docs/resources/entitlement#list-entitlements}
1497
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#list-entitlements}
1696
1498
  * @param applicationId - The application id to fetch entitlements for
1697
1499
  * @param query - The query options for fetching entitlements
1698
1500
  * @param options - The options for fetching entitlements
@@ -1701,7 +1503,7 @@ declare class MonetizationAPI {
1701
1503
  /**
1702
1504
  * Creates a test entitlement for an application's SKU.
1703
1505
  *
1704
- * @see {@link https://discord.com/developers/docs/resources/entitlement#create-test-entitlement}
1506
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement}
1705
1507
  * @param applicationId - The application id to create the entitlement for
1706
1508
  * @param body - The data for creating the entitlement
1707
1509
  * @param options - The options for creating the entitlement
@@ -1710,7 +1512,7 @@ declare class MonetizationAPI {
1710
1512
  /**
1711
1513
  * Deletes a test entitlement for an application's SKU.
1712
1514
  *
1713
- * @see {@link https://discord.com/developers/docs/resources/entitlement#delete-test-entitlement}
1515
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement}
1714
1516
  * @param applicationId - The application id to delete the entitlement for
1715
1517
  * @param entitlementId - The entitlement id to delete
1716
1518
  * @param options - The options for deleting the entitlement
@@ -1719,7 +1521,7 @@ declare class MonetizationAPI {
1719
1521
  /**
1720
1522
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
1721
1523
  *
1722
- * @see {@link https://discord.com/developers/docs/resources/entitlement#consume-an-entitlement}
1524
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement}
1723
1525
  * @param applicationId - The application id to consume the entitlement for
1724
1526
  * @param entitlementId - The entitlement id to consume
1725
1527
  * @param options - The options for consuming the entitlement
@@ -1836,18 +1638,6 @@ declare class RoleConnectionsAPI {
1836
1638
  updateMetadataRecords(applicationId: Snowflake, body: RESTPutAPIApplicationRoleConnectionMetadataJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<RESTPutAPIApplicationRoleConnectionMetadataResult>;
1837
1639
  }
1838
1640
 
1839
- declare class SoundboardSoundsAPI {
1840
- private readonly rest;
1841
- constructor(rest: REST);
1842
- /**
1843
- * Fetches all the soundboard default sounds.
1844
- *
1845
- * @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
1846
- * @param options - The options for fetching the soundboard default sounds.
1847
- */
1848
- getSoundboardDefaultSounds({ signal }?: Pick<RequestData, 'signal'>): Promise<RESTGetAPISoundboardDefaultSoundsResult>;
1849
- }
1850
-
1851
1641
  declare class StageInstancesAPI {
1852
1642
  private readonly rest;
1853
1643
  constructor(rest: REST);
@@ -2128,7 +1918,6 @@ declare class API {
2128
1918
  readonly oauth2: OAuth2API;
2129
1919
  readonly poll: PollAPI;
2130
1920
  readonly roleConnections: RoleConnectionsAPI;
2131
- readonly soundboardSounds: SoundboardSoundsAPI;
2132
1921
  readonly stageInstances: StageInstancesAPI;
2133
1922
  readonly stickers: StickersAPI;
2134
1923
  readonly threads: ThreadsAPI;
@@ -2200,10 +1989,6 @@ interface MappedEvents {
2200
1989
  [GatewayDispatchEvents.GuildScheduledEventUserRemove]: [
2201
1990
  ToEventProps<GatewayGuildScheduledEventUserRemoveDispatchData>
2202
1991
  ];
2203
- [GatewayDispatchEvents.GuildSoundboardSoundCreate]: [ToEventProps<GatewayGuildSoundboardSoundCreateDispatch>];
2204
- [GatewayDispatchEvents.GuildSoundboardSoundDelete]: [ToEventProps<GatewayGuildSoundboardSoundDeleteDispatch>];
2205
- [GatewayDispatchEvents.GuildSoundboardSoundUpdate]: [ToEventProps<GatewayGuildSoundboardSoundUpdateDispatch>];
2206
- [GatewayDispatchEvents.GuildSoundboardSoundsUpdate]: [ToEventProps<GatewayGuildSoundboardSoundsUpdateDispatch>];
2207
1992
  [GatewayDispatchEvents.GuildStickersUpdate]: [ToEventProps<GatewayGuildStickersUpdateDispatchData>];
2208
1993
  [GatewayDispatchEvents.GuildUpdate]: [ToEventProps<GatewayGuildUpdateDispatchData>];
2209
1994
  [GatewayDispatchEvents.IntegrationCreate]: [ToEventProps<GatewayIntegrationCreateDispatchData>];
@@ -2228,9 +2013,6 @@ interface MappedEvents {
2228
2013
  [GatewayDispatchEvents.StageInstanceCreate]: [ToEventProps<GatewayStageInstanceCreateDispatchData>];
2229
2014
  [GatewayDispatchEvents.StageInstanceDelete]: [ToEventProps<GatewayStageInstanceDeleteDispatchData>];
2230
2015
  [GatewayDispatchEvents.StageInstanceUpdate]: [ToEventProps<GatewayStageInstanceUpdateDispatchData>];
2231
- [GatewayDispatchEvents.SubscriptionCreate]: [ToEventProps<GatewaySubscriptionCreateDispatchData>];
2232
- [GatewayDispatchEvents.SubscriptionDelete]: [ToEventProps<GatewaySubscriptionDeleteDispatchData>];
2233
- [GatewayDispatchEvents.SubscriptionUpdate]: [ToEventProps<GatewaySubscriptionUpdateDispatchData>];
2234
2016
  [GatewayDispatchEvents.ThreadCreate]: [ToEventProps<GatewayThreadCreateDispatchData>];
2235
2017
  [GatewayDispatchEvents.ThreadDelete]: [ToEventProps<GatewayThreadDeleteDispatchData>];
2236
2018
  [GatewayDispatchEvents.ThreadListSync]: [ToEventProps<GatewayThreadListSyncDispatchData>];
@@ -2332,7 +2114,7 @@ declare function withFiles(files: DescriptiveRawFile[], options: APIInteractionR
2332
2114
  id: string;
2333
2115
  description: string | undefined;
2334
2116
  }[];
2335
- flags?: discord_api_types_v10.MessageFlags;
2117
+ flags?: discord_api_types_v10.MessageFlags | undefined;
2336
2118
  content?: string | undefined;
2337
2119
  tts?: boolean | undefined;
2338
2120
  embeds?: discord_api_types_v10.APIEmbed[] | undefined;
@@ -2354,4 +2136,4 @@ declare function withFiles(files: DescriptiveRawFile[], options: APIInteractionR
2354
2136
  */
2355
2137
  declare const version: string;
2356
2138
 
2357
- export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, Client, type ClientOptions, type DescriptiveRawFile, 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 };
2139
+ export { API, ApplicationCommandsAPI, ApplicationsAPI, ChannelsAPI, Client, type ClientOptions, type DescriptiveRawFile, type Gateway, GuildsAPI, InteractionsAPI, type IntrinsicProps, InvitesAPI, type ManagerShardEventsMap, type MappedEvents, MonetizationAPI, OAuth2API, PollAPI, type RequestGuildMembersResult, RoleConnectionsAPI, StageInstancesAPI, type StartForumThreadOptions, StickersAPI, ThreadsAPI, type ToEventProps, UsersAPI, VoiceAPI, WebhooksAPI, version, withFiles };