@discordjs/structures 1.0.0-dev.1777075897-40ce0791a → 1.0.0-dev.1779754816-c95cbf267

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,5 +1,5 @@
1
1
  import * as discord_api_types_v10 from 'discord-api-types/v10';
2
- import { APIAutoModerationAction, APIAutoModerationActionMetadata, APIAutoModerationRule, APIAutoModerationRuleTriggerMetadata, AttachmentFlags, ChannelFlags, MessageFlags, PermissionFlagsBits, SKUFlags, GuildChannelType, ChannelType, ThreadChannelType, GuildTextChannelType, TextChannelType, APIChannel, APIPartialChannel, APIGuildForumTag, APIOverwrite, APIThreadMetadata, APINewsChannel, APIAnnouncementThreadChannel, APIGuildCategoryChannel, APIDMChannel, APIGuildForumChannel, APIGroupDMChannel, APIGuildMediaChannel, APIPrivateThreadChannel, APIPublicThreadChannel, APIGuildStageVoiceChannel, APITextChannel, APIGuildVoiceChannel, APIEmoji, APIEntitlement, APIInteractionDataResolved, APIInvite, APIExtendedInvite, APIMessageComponent, APIModalComponent, ComponentType, APIBaseComponent, APIComponentInActionRow, APIActionRowComponent, ButtonStyle, APIButtonComponentWithCustomId, APIButtonComponent, APISelectMenuComponent, APIChannelSelectComponent, APIContainerComponent, APIFileComponent, APIFileUploadComponent, APIButtonComponentWithURL, APIMediaGalleryComponent, APIMentionableSelectComponent, APIButtonComponentWithSKUId, APIRoleSelectComponent, APISectionComponent, APISeparatorComponent, APIStringSelectComponent, APITextDisplayComponent, APITextInputComponent, APIThumbnailComponent, APIUserSelectComponent, APIMessageComponentEmoji, APIMediaGalleryItem, SelectMenuDefaultValueType, APISelectMenuDefaultValue, APISelectMenuOption, APIUnfurledMediaItem, APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbedImage, APIEmbedProvider, APIEmbedThumbnail, APIEmbedVideo, InteractionType, APIMessageInteractionMetadata, APIApplicationCommandInteractionMetadata, APIAttachment, APIChannelMention, APIMessage, APIMessageActivity, APIMessageCall, APIMessageComponentInteractionMetadata, APIMessageReference, MessageReferenceType, APIModalSubmitInteractionMetadata, APIReaction, APIReactionCountDetails, APIMessageRoleSubscriptionData, APIPoll, APIPollAnswer, APIPollAnswerCount, APIPollMedia, APIPollResults, APISKU, APISoundboardSound, APIStageInstance, APISticker, APIStickerPack, APITeam, APITeamMember, APIAvatarDecorationData, APIUser, APIConnection, APIWebhook, APIVoiceState, APIVoiceRegion, APISubscription } from 'discord-api-types/v10';
2
+ import { APIAutoModerationAction, APIAutoModerationActionMetadata, APIAutoModerationRule, APIAutoModerationRuleTriggerMetadata, AttachmentFlags, ChannelFlags, MessageFlags, PermissionFlagsBits, SKUFlags, GuildChannelType, ChannelType, ThreadChannelType, GuildTextChannelType, TextChannelType, APIChannel, APIPartialChannel, APIGuildForumTag, APIOverwrite, APIThreadMetadata, APINewsChannel, APIAnnouncementThreadChannel, APIGuildCategoryChannel, APIDMChannel, APIGuildForumChannel, APIGroupDMChannel, APIGuildMediaChannel, APIPrivateThreadChannel, APIPublicThreadChannel, APIGuildStageVoiceChannel, APITextChannel, APIGuildVoiceChannel, APIEmoji, APIEntitlement, APIInteractionDataResolved, APIInvite, APIExtendedInvite, APIMessageComponent, APIModalComponent, ComponentType, APIBaseComponent, APIComponentInActionRow, APIActionRowComponent, ButtonStyle, APIButtonComponentWithCustomId, APIButtonComponent, APISelectMenuComponent, APIChannelSelectComponent, APIContainerComponent, APIFileComponent, APIFileUploadComponent, APIButtonComponentWithURL, APIMediaGalleryComponent, APIMentionableSelectComponent, APIButtonComponentWithSKUId, APIRoleSelectComponent, APISectionComponent, APISeparatorComponent, APIStringSelectComponent, APITextDisplayComponent, APITextInputComponent, APIThumbnailComponent, APIUserSelectComponent, APIMessageComponentEmoji, APIMediaGalleryItem, SelectMenuDefaultValueType, APISelectMenuDefaultValue, APISelectMenuOption, APIUnfurledMediaItem, APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbedImage, APIEmbedProvider, APIEmbedThumbnail, APIEmbedVideo, InteractionType, APIMessageInteractionMetadata, APIApplicationCommandInteractionMetadata, APIAttachment, APIChannelMention, APIMessage, APIMessageActivity, APIMessageCall, APIMessageComponentInteractionMetadata, APIMessageReference, MessageReferenceType, APIModalSubmitInteractionMetadata, APIReaction, APIReactionCountDetails, APIMessageRoleSubscriptionData, APIMessageSharedClientTheme, APIPoll, APIPollAnswer, APIPollAnswerCount, APIPollMedia, APIPollResults, APISKU, APISoundboardSound, APIStageInstance, APISticker, APIStickerPack, APITeam, APITeamMember, APIAvatarDecorationData, APIUser, APIConnection, APIWebhook, APIVoiceState, APIVoiceRegion, APISubscription } from 'discord-api-types/v10';
3
3
 
4
4
  declare const kData: unique symbol;
5
5
  declare const kClone: unique symbol;
@@ -188,23 +188,23 @@ declare class AutoModerationActionMetadata<Omitted extends keyof APIAutoModerati
188
188
  /**
189
189
  * Channel to which user content should be logged. This must be an existing channel
190
190
  *
191
- * Associated action types: {@link AutoModerationActionType.SendAlertMessage}
191
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.SendAlertMessage}
192
192
  */
193
193
  get channelId(): ("channel_id" extends infer T ? T extends "channel_id" ? T extends Omitted ? unknown : APIAutoModerationActionMetadata[T] : never : never) | undefined;
194
194
  /**
195
195
  * Timeout duration in seconds. Maximum of 2419200 seconds (4 weeks).
196
196
  *
197
- * A `TIMEOUT` action can only be set up for {@link AutoModerationRuleTriggerType.Keyword} and {@link AutoModerationRuleTriggerType.MentionSpam}.
197
+ * A `TIMEOUT` action can only be set up for {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword} and {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}.
198
198
  *
199
- * The `MODERATE_MEMBERS` permission is required to use {@link AutoModerationActionType.Timeout} actions.
199
+ * The `MODERATE_MEMBERS` permission is required to use {@link discord-api-types/v10#AutoModerationActionType.Timeout} actions.
200
200
  *
201
- * Associated action types: {@link AutoModerationActionType.Timeout}
201
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.Timeout}
202
202
  */
203
203
  get durationSeconds(): ("duration_seconds" extends infer T ? T extends "duration_seconds" ? T extends Omitted ? unknown : APIAutoModerationActionMetadata[T] : never : never) | undefined;
204
204
  /**
205
205
  * Additional explanation that will be shown to members whenever their message is blocked. Maximum of 150 characters
206
206
  *
207
- * Associated action types: {@link AutoModerationActionType.BlockMessage}
207
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.BlockMessage}
208
208
  */
209
209
  get customMessage(): ("custom_message" extends infer T ? T extends "custom_message" ? T extends Omitted ? unknown : APIAutoModerationActionMetadata[T] : never : never) | undefined;
210
210
  }
@@ -282,7 +282,7 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
282
282
  *
283
283
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
284
284
  *
285
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
285
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
286
286
  */
287
287
  get keywordFilter(): ("keyword_filter" extends infer T ? T extends "keyword_filter" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
288
288
  /**
@@ -292,7 +292,7 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
292
292
  *
293
293
  * Each regex pattern must be 260 characters or less.
294
294
  *
295
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
295
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
296
296
  */
297
297
  get regexPatterns(): ("regex_patterns" extends infer T ? T extends "regex_patterns" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
298
298
  /**
@@ -300,7 +300,7 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
300
300
  *
301
301
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types | Keyword preset types}
302
302
  *
303
- * Associated trigger types: {@link AutoModerationRuleTriggerType.KeywordPreset}
303
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}
304
304
  */
305
305
  get presets(): ("presets" extends infer T ? T extends "presets" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
306
306
  /**
@@ -317,19 +317,19 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
317
317
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types | triggerType}
318
318
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
319
319
  *
320
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.KeywordPreset}, {@link AutoModerationRuleTriggerType.MemberProfile}
320
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
321
321
  */
322
322
  get allowList(): ("allow_list" extends infer T ? T extends "allow_list" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
323
323
  /**
324
324
  * Total number of unique role and user mentions allowed per message (Maximum of 50)
325
325
  *
326
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
326
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
327
327
  */
328
328
  get mentionTotalLimit(): ("mention_total_limit" extends infer T ? T extends "mention_total_limit" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
329
329
  /**
330
330
  * Whether to automatically detect mention raids
331
331
  *
332
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
332
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
333
333
  */
334
334
  get mentionRaidProtectionEnabled(): ("mention_raid_protection_enabled" extends infer T ? T extends "mention_raid_protection_enabled" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
335
335
  }
@@ -580,7 +580,7 @@ declare class PermissionsBitField extends BitField<keyof typeof PermissionFlagsB
580
580
  }
581
581
 
582
582
  /**
583
- * Data structure that makes it easy to interact with an {@link SKUFlags} bitfield.
583
+ * Data structure that makes it easy to interact with an {@link discord-api-types/v10#SKUFlags} bitfield.
584
584
  */
585
585
  declare class SKUFlagsBitField extends BitField<keyof typeof SKUFlags> {
586
586
  /**
@@ -2610,7 +2610,7 @@ declare class ChannelMention<Omitted extends keyof APIChannelMention | '' = ''>
2610
2610
  * Represents a message on Discord.
2611
2611
  *
2612
2612
  * @typeParam Omitted - Specify the properties that will not be stored in the raw data field as a union, implement via `DataTemplate`
2613
- * @remarks has substructures `Message`, `Channel`, `MessageActivity`, `MessageCall`, `MessageReference`, `Attachment`, `Application`, `ChannelMention`, `Reaction`, `Poll`, `ResolvedInteractionData`, `RoleSubscriptionData`, `Sticker`, all the different `Component`s, ... which need to be instantiated and stored by an extending class using it
2613
+ * @remarks has substructures `Message`, `Channel`, `MessageActivity`, `MessageCall`, `MessageReference`, `SharedClientTheme`, `Attachment`, `Application`, `ChannelMention`, `Reaction`, `Poll`, `ResolvedInteractionData`, `RoleSubscriptionData`, `Sticker`, all the different `Component`s, ... which need to be instantiated and stored by an extending class using it
2614
2614
  */
2615
2615
  declare class Message<Omitted extends keyof APIMessage | '' = 'edited_timestamp' | 'timestamp'> extends Structure<APIMessage, Omitted> {
2616
2616
  /**
@@ -2911,6 +2911,41 @@ declare abstract class RoleSubscriptionData<Omitted extends keyof APIMessageRole
2911
2911
  get isRenewal(): "is_renewal" extends infer T ? T extends "is_renewal" ? T extends Omitted ? unknown : APIMessageRoleSubscriptionData[T] : never : never;
2912
2912
  }
2913
2913
 
2914
+ /**
2915
+ * Represents the shared client theme sent with a Discord message.
2916
+ *
2917
+ * @typeParam Omitted - Specify the properties that will not be stored in the raw data field as a union, implement via `DataTemplate`
2918
+ * @see {@link https://docs.discord.com/developers/resources/message#shared-client-theme-object}
2919
+ */
2920
+ declare class SharedClientTheme<Omitted extends keyof APIMessageSharedClientTheme | '' = ''> extends Structure<APIMessageSharedClientTheme, Omitted> {
2921
+ /**
2922
+ * The template used for removing data from the raw data stored for each SharedClientTheme.
2923
+ */
2924
+ static DataTemplate: Partial<APIMessageSharedClientTheme>;
2925
+ /**
2926
+ * @param data - The raw data received from the API for the shared client theme
2927
+ */
2928
+ constructor(data: Partialize<APIMessageSharedClientTheme, Omitted>);
2929
+ /**
2930
+ * The hexadecimal-encoded colors of this theme (max of 5)
2931
+ */
2932
+ get colors(): "colors" extends infer T ? T extends "colors" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never;
2933
+ /**
2934
+ * The gradient angle (direction) of this theme's colors (0–360)
2935
+ */
2936
+ get gradientAngle(): "gradient_angle" extends infer T ? T extends "gradient_angle" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never;
2937
+ /**
2938
+ * The base mix (intensity) of this theme's colors (0–100)
2939
+ */
2940
+ get baseMix(): "base_mix" extends infer T ? T extends "base_mix" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never;
2941
+ /**
2942
+ * The base theme mode
2943
+ *
2944
+ * @see {@link https://docs.discord.com/developers/resources/message#base-theme-types}
2945
+ */
2946
+ get baseTheme(): ("base_theme" extends infer T ? T extends "base_theme" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never) | undefined;
2947
+ }
2948
+
2914
2949
  /**
2915
2950
  * Represents a poll on a message on Discord.
2916
2951
  *
@@ -3782,7 +3817,7 @@ declare class Subscription<Omitted extends keyof APISubscription | '' = 'cancele
3782
3817
  */
3783
3818
  get currentPeriodEndsAt(): Date | null;
3784
3819
  /**
3785
- * The {@link SubscriptionStatus} of the current subscription
3820
+ * The {@link discord-api-types/v10#SubscriptionStatus} of the current subscription
3786
3821
  */
3787
3822
  get status(): "status" extends infer T ? T extends "status" ? T extends Omitted ? unknown : APISubscription[T] : never : never;
3788
3823
  /**
@@ -3792,7 +3827,7 @@ declare class Subscription<Omitted extends keyof APISubscription | '' = 'cancele
3792
3827
  /**
3793
3828
  * The time when the subscription was canceled
3794
3829
  *
3795
- * @remarks This is populated when the {@link Subscription#status} transitions to {@link SubscriptionStatus.Ending}.
3830
+ * @remarks This is populated when the {@link Subscription.status} transitions to {@link discord-api-types/v10#SubscriptionStatus.Ending}.
3796
3831
  */
3797
3832
  get canceledAt(): Date | null;
3798
3833
  /**
@@ -3818,10 +3853,9 @@ declare function extendTemplate<SuperTemplate extends Record<string, unknown>>(s
3818
3853
  * Turns a JavaScript Date object into the timestamp format used by Discord in payloads.
3819
3854
  * E.g. `2025-11-16T14:09:25.239000+00:00`
3820
3855
  *
3821
- * @private
3822
- * @param date a Date instance
3856
+ * @param date - a Date instance
3823
3857
  * @returns an ISO8601 timestamp with microseconds precision and explicit +00:00 timezone
3824
3858
  */
3825
3859
  declare function dateToDiscordISOTimestamp(date: Date): string;
3826
3860
 
3827
- export { type APIActualInvite, ActionRowComponent, AnnouncementChannel, AnnouncementThreadChannel, ApplicationCommandInteractionMetadata, AppliedTagsMixin, Attachment, AttachmentFlagsBitField, AutoModerationAction, AutoModerationActionMetadata, AutoModerationRule, AutoModerationRuleTriggerMetadata, AvatarDecorationData, BitField, type BitFieldResolvable, ButtonComponent, type ButtonDataType, CategoryChannel, Channel, type ChannelDataType, ChannelFlagsBitField, ChannelMention, ChannelOwnerMixin, ChannelParentMixin, ChannelPermissionMixin, ChannelPinMixin, ChannelSelectMenuComponent, ChannelSlowmodeMixin, ChannelTopicMixin, ChannelWebhookMixin, type CollapseUnion, Component, type ComponentDataType, ComponentEmoji, Connection, ContainerComponent, DMChannel, DMChannelMixin, DataTemplatePropertyName, Embed, EmbedAuthor, EmbedField, EmbedFooter, EmbedImage, EmbedProvider, EmbedThumbnail, EmbedVideo, Emoji, Entitlement, type EnumLike, FileComponent, FileUploadComponent, ForumChannel, ForumTag, GroupDMChannel, GroupDMMixin, GuildChannelMixin, type If, InteractionMetadata, type InteractionMetadataType, InteractiveButtonComponent, Invite, LabeledButtonComponent, LinkButtonComponent, MediaChannel, MediaGalleryComponent, MediaGalleryItem, MentionableSelectMenuComponent, type MergePrototype, type MergePrototypes, Message, MessageActivity, MessageCall, MessageComponentInteractionMetadata, MessageFlagsBitField, MessageReference, Mixin, type MixinBase, type MixinTypes, type Mixinable, ModalSubmitInteractionMetadata, type NonAbstract, OptimizeDataPropertyName, type OptionalPropertyNames, type PartialChannel, type Partialize, PermissionOverwrite, PermissionsBitField, Poll, PollAnswer, PollAnswerCount, PollMedia, PollResults, PremiumButtonComponent, PrivateThreadChannel, PublicThreadChannel, Reaction, ReactionCountDetails, type RecursiveReadonlyArray, type ReplaceOmittedWithUnknown, ResolvedInteractionData, RoleSelectMenuComponent, RoleSubscriptionData, SKU, SKUFlagsBitField, SectionComponent, SelectMenuComponent, SelectMenuDefaultValue, SeparatorComponent, SoundboardSound, StageChannel, StageInstance, Sticker, StickerPack, StringSelectMenuComponent, StringSelectMenuOption, Structure, Subscription, Team, TeamMember, TextChannel, TextChannelMixin, TextDisplayComponent, TextInputComponent, ThreadChannelMixin, ThreadMetadata, ThreadOnlyChannelMixin, ThumbnailComponent, UnfurledMediaItem, User, UserSelectMenuComponent, VoiceChannel, VoiceChannelMixin, VoiceRegion, VoiceState, Webhook, dateToDiscordISOTimestamp, extendTemplate };
3861
+ export { type APIActualInvite, ActionRowComponent, AnnouncementChannel, AnnouncementThreadChannel, ApplicationCommandInteractionMetadata, AppliedTagsMixin, Attachment, AttachmentFlagsBitField, AutoModerationAction, AutoModerationActionMetadata, AutoModerationRule, AutoModerationRuleTriggerMetadata, AvatarDecorationData, BitField, type BitFieldResolvable, ButtonComponent, type ButtonDataType, CategoryChannel, Channel, type ChannelDataType, ChannelFlagsBitField, ChannelMention, ChannelOwnerMixin, ChannelParentMixin, ChannelPermissionMixin, ChannelPinMixin, ChannelSelectMenuComponent, ChannelSlowmodeMixin, ChannelTopicMixin, ChannelWebhookMixin, type CollapseUnion, Component, type ComponentDataType, ComponentEmoji, Connection, ContainerComponent, DMChannel, DMChannelMixin, DataTemplatePropertyName, Embed, EmbedAuthor, EmbedField, EmbedFooter, EmbedImage, EmbedProvider, EmbedThumbnail, EmbedVideo, Emoji, Entitlement, type EnumLike, FileComponent, FileUploadComponent, ForumChannel, ForumTag, GroupDMChannel, GroupDMMixin, GuildChannelMixin, type If, InteractionMetadata, type InteractionMetadataType, InteractiveButtonComponent, Invite, LabeledButtonComponent, LinkButtonComponent, MediaChannel, MediaGalleryComponent, MediaGalleryItem, MentionableSelectMenuComponent, type MergePrototype, type MergePrototypes, Message, MessageActivity, MessageCall, MessageComponentInteractionMetadata, MessageFlagsBitField, MessageReference, Mixin, type MixinBase, type MixinTypes, type Mixinable, ModalSubmitInteractionMetadata, type NonAbstract, OptimizeDataPropertyName, type OptionalPropertyNames, type PartialChannel, type Partialize, PermissionOverwrite, PermissionsBitField, Poll, PollAnswer, PollAnswerCount, PollMedia, PollResults, PremiumButtonComponent, PrivateThreadChannel, PublicThreadChannel, Reaction, ReactionCountDetails, type RecursiveReadonlyArray, type ReplaceOmittedWithUnknown, ResolvedInteractionData, RoleSelectMenuComponent, RoleSubscriptionData, SKU, SKUFlagsBitField, SectionComponent, SelectMenuComponent, SelectMenuDefaultValue, SeparatorComponent, SharedClientTheme, SoundboardSound, StageChannel, StageInstance, Sticker, StickerPack, StringSelectMenuComponent, StringSelectMenuOption, Structure, Subscription, Team, TeamMember, TextChannel, TextChannelMixin, TextDisplayComponent, TextInputComponent, ThreadChannelMixin, ThreadMetadata, ThreadOnlyChannelMixin, ThumbnailComponent, UnfurledMediaItem, User, UserSelectMenuComponent, VoiceChannel, VoiceChannelMixin, VoiceRegion, VoiceState, Webhook, dateToDiscordISOTimestamp, extendTemplate };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as discord_api_types_v10 from 'discord-api-types/v10';
2
- import { APIAutoModerationAction, APIAutoModerationActionMetadata, APIAutoModerationRule, APIAutoModerationRuleTriggerMetadata, AttachmentFlags, ChannelFlags, MessageFlags, PermissionFlagsBits, SKUFlags, GuildChannelType, ChannelType, ThreadChannelType, GuildTextChannelType, TextChannelType, APIChannel, APIPartialChannel, APIGuildForumTag, APIOverwrite, APIThreadMetadata, APINewsChannel, APIAnnouncementThreadChannel, APIGuildCategoryChannel, APIDMChannel, APIGuildForumChannel, APIGroupDMChannel, APIGuildMediaChannel, APIPrivateThreadChannel, APIPublicThreadChannel, APIGuildStageVoiceChannel, APITextChannel, APIGuildVoiceChannel, APIEmoji, APIEntitlement, APIInteractionDataResolved, APIInvite, APIExtendedInvite, APIMessageComponent, APIModalComponent, ComponentType, APIBaseComponent, APIComponentInActionRow, APIActionRowComponent, ButtonStyle, APIButtonComponentWithCustomId, APIButtonComponent, APISelectMenuComponent, APIChannelSelectComponent, APIContainerComponent, APIFileComponent, APIFileUploadComponent, APIButtonComponentWithURL, APIMediaGalleryComponent, APIMentionableSelectComponent, APIButtonComponentWithSKUId, APIRoleSelectComponent, APISectionComponent, APISeparatorComponent, APIStringSelectComponent, APITextDisplayComponent, APITextInputComponent, APIThumbnailComponent, APIUserSelectComponent, APIMessageComponentEmoji, APIMediaGalleryItem, SelectMenuDefaultValueType, APISelectMenuDefaultValue, APISelectMenuOption, APIUnfurledMediaItem, APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbedImage, APIEmbedProvider, APIEmbedThumbnail, APIEmbedVideo, InteractionType, APIMessageInteractionMetadata, APIApplicationCommandInteractionMetadata, APIAttachment, APIChannelMention, APIMessage, APIMessageActivity, APIMessageCall, APIMessageComponentInteractionMetadata, APIMessageReference, MessageReferenceType, APIModalSubmitInteractionMetadata, APIReaction, APIReactionCountDetails, APIMessageRoleSubscriptionData, APIPoll, APIPollAnswer, APIPollAnswerCount, APIPollMedia, APIPollResults, APISKU, APISoundboardSound, APIStageInstance, APISticker, APIStickerPack, APITeam, APITeamMember, APIAvatarDecorationData, APIUser, APIConnection, APIWebhook, APIVoiceState, APIVoiceRegion, APISubscription } from 'discord-api-types/v10';
2
+ import { APIAutoModerationAction, APIAutoModerationActionMetadata, APIAutoModerationRule, APIAutoModerationRuleTriggerMetadata, AttachmentFlags, ChannelFlags, MessageFlags, PermissionFlagsBits, SKUFlags, GuildChannelType, ChannelType, ThreadChannelType, GuildTextChannelType, TextChannelType, APIChannel, APIPartialChannel, APIGuildForumTag, APIOverwrite, APIThreadMetadata, APINewsChannel, APIAnnouncementThreadChannel, APIGuildCategoryChannel, APIDMChannel, APIGuildForumChannel, APIGroupDMChannel, APIGuildMediaChannel, APIPrivateThreadChannel, APIPublicThreadChannel, APIGuildStageVoiceChannel, APITextChannel, APIGuildVoiceChannel, APIEmoji, APIEntitlement, APIInteractionDataResolved, APIInvite, APIExtendedInvite, APIMessageComponent, APIModalComponent, ComponentType, APIBaseComponent, APIComponentInActionRow, APIActionRowComponent, ButtonStyle, APIButtonComponentWithCustomId, APIButtonComponent, APISelectMenuComponent, APIChannelSelectComponent, APIContainerComponent, APIFileComponent, APIFileUploadComponent, APIButtonComponentWithURL, APIMediaGalleryComponent, APIMentionableSelectComponent, APIButtonComponentWithSKUId, APIRoleSelectComponent, APISectionComponent, APISeparatorComponent, APIStringSelectComponent, APITextDisplayComponent, APITextInputComponent, APIThumbnailComponent, APIUserSelectComponent, APIMessageComponentEmoji, APIMediaGalleryItem, SelectMenuDefaultValueType, APISelectMenuDefaultValue, APISelectMenuOption, APIUnfurledMediaItem, APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbedImage, APIEmbedProvider, APIEmbedThumbnail, APIEmbedVideo, InteractionType, APIMessageInteractionMetadata, APIApplicationCommandInteractionMetadata, APIAttachment, APIChannelMention, APIMessage, APIMessageActivity, APIMessageCall, APIMessageComponentInteractionMetadata, APIMessageReference, MessageReferenceType, APIModalSubmitInteractionMetadata, APIReaction, APIReactionCountDetails, APIMessageRoleSubscriptionData, APIMessageSharedClientTheme, APIPoll, APIPollAnswer, APIPollAnswerCount, APIPollMedia, APIPollResults, APISKU, APISoundboardSound, APIStageInstance, APISticker, APIStickerPack, APITeam, APITeamMember, APIAvatarDecorationData, APIUser, APIConnection, APIWebhook, APIVoiceState, APIVoiceRegion, APISubscription } from 'discord-api-types/v10';
3
3
 
4
4
  declare const kData: unique symbol;
5
5
  declare const kClone: unique symbol;
@@ -188,23 +188,23 @@ declare class AutoModerationActionMetadata<Omitted extends keyof APIAutoModerati
188
188
  /**
189
189
  * Channel to which user content should be logged. This must be an existing channel
190
190
  *
191
- * Associated action types: {@link AutoModerationActionType.SendAlertMessage}
191
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.SendAlertMessage}
192
192
  */
193
193
  get channelId(): ("channel_id" extends infer T ? T extends "channel_id" ? T extends Omitted ? unknown : APIAutoModerationActionMetadata[T] : never : never) | undefined;
194
194
  /**
195
195
  * Timeout duration in seconds. Maximum of 2419200 seconds (4 weeks).
196
196
  *
197
- * A `TIMEOUT` action can only be set up for {@link AutoModerationRuleTriggerType.Keyword} and {@link AutoModerationRuleTriggerType.MentionSpam}.
197
+ * A `TIMEOUT` action can only be set up for {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword} and {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}.
198
198
  *
199
- * The `MODERATE_MEMBERS` permission is required to use {@link AutoModerationActionType.Timeout} actions.
199
+ * The `MODERATE_MEMBERS` permission is required to use {@link discord-api-types/v10#AutoModerationActionType.Timeout} actions.
200
200
  *
201
- * Associated action types: {@link AutoModerationActionType.Timeout}
201
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.Timeout}
202
202
  */
203
203
  get durationSeconds(): ("duration_seconds" extends infer T ? T extends "duration_seconds" ? T extends Omitted ? unknown : APIAutoModerationActionMetadata[T] : never : never) | undefined;
204
204
  /**
205
205
  * Additional explanation that will be shown to members whenever their message is blocked. Maximum of 150 characters
206
206
  *
207
- * Associated action types: {@link AutoModerationActionType.BlockMessage}
207
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.BlockMessage}
208
208
  */
209
209
  get customMessage(): ("custom_message" extends infer T ? T extends "custom_message" ? T extends Omitted ? unknown : APIAutoModerationActionMetadata[T] : never : never) | undefined;
210
210
  }
@@ -282,7 +282,7 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
282
282
  *
283
283
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
284
284
  *
285
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
285
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
286
286
  */
287
287
  get keywordFilter(): ("keyword_filter" extends infer T ? T extends "keyword_filter" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
288
288
  /**
@@ -292,7 +292,7 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
292
292
  *
293
293
  * Each regex pattern must be 260 characters or less.
294
294
  *
295
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
295
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
296
296
  */
297
297
  get regexPatterns(): ("regex_patterns" extends infer T ? T extends "regex_patterns" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
298
298
  /**
@@ -300,7 +300,7 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
300
300
  *
301
301
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types | Keyword preset types}
302
302
  *
303
- * Associated trigger types: {@link AutoModerationRuleTriggerType.KeywordPreset}
303
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}
304
304
  */
305
305
  get presets(): ("presets" extends infer T ? T extends "presets" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
306
306
  /**
@@ -317,19 +317,19 @@ declare class AutoModerationRuleTriggerMetadata<Omitted extends keyof APIAutoMod
317
317
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types | triggerType}
318
318
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
319
319
  *
320
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.KeywordPreset}, {@link AutoModerationRuleTriggerType.MemberProfile}
320
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
321
321
  */
322
322
  get allowList(): ("allow_list" extends infer T ? T extends "allow_list" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
323
323
  /**
324
324
  * Total number of unique role and user mentions allowed per message (Maximum of 50)
325
325
  *
326
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
326
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
327
327
  */
328
328
  get mentionTotalLimit(): ("mention_total_limit" extends infer T ? T extends "mention_total_limit" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
329
329
  /**
330
330
  * Whether to automatically detect mention raids
331
331
  *
332
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
332
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
333
333
  */
334
334
  get mentionRaidProtectionEnabled(): ("mention_raid_protection_enabled" extends infer T ? T extends "mention_raid_protection_enabled" ? T extends Omitted ? unknown : APIAutoModerationRuleTriggerMetadata[T] : never : never) | undefined;
335
335
  }
@@ -580,7 +580,7 @@ declare class PermissionsBitField extends BitField<keyof typeof PermissionFlagsB
580
580
  }
581
581
 
582
582
  /**
583
- * Data structure that makes it easy to interact with an {@link SKUFlags} bitfield.
583
+ * Data structure that makes it easy to interact with an {@link discord-api-types/v10#SKUFlags} bitfield.
584
584
  */
585
585
  declare class SKUFlagsBitField extends BitField<keyof typeof SKUFlags> {
586
586
  /**
@@ -2610,7 +2610,7 @@ declare class ChannelMention<Omitted extends keyof APIChannelMention | '' = ''>
2610
2610
  * Represents a message on Discord.
2611
2611
  *
2612
2612
  * @typeParam Omitted - Specify the properties that will not be stored in the raw data field as a union, implement via `DataTemplate`
2613
- * @remarks has substructures `Message`, `Channel`, `MessageActivity`, `MessageCall`, `MessageReference`, `Attachment`, `Application`, `ChannelMention`, `Reaction`, `Poll`, `ResolvedInteractionData`, `RoleSubscriptionData`, `Sticker`, all the different `Component`s, ... which need to be instantiated and stored by an extending class using it
2613
+ * @remarks has substructures `Message`, `Channel`, `MessageActivity`, `MessageCall`, `MessageReference`, `SharedClientTheme`, `Attachment`, `Application`, `ChannelMention`, `Reaction`, `Poll`, `ResolvedInteractionData`, `RoleSubscriptionData`, `Sticker`, all the different `Component`s, ... which need to be instantiated and stored by an extending class using it
2614
2614
  */
2615
2615
  declare class Message<Omitted extends keyof APIMessage | '' = 'edited_timestamp' | 'timestamp'> extends Structure<APIMessage, Omitted> {
2616
2616
  /**
@@ -2911,6 +2911,41 @@ declare abstract class RoleSubscriptionData<Omitted extends keyof APIMessageRole
2911
2911
  get isRenewal(): "is_renewal" extends infer T ? T extends "is_renewal" ? T extends Omitted ? unknown : APIMessageRoleSubscriptionData[T] : never : never;
2912
2912
  }
2913
2913
 
2914
+ /**
2915
+ * Represents the shared client theme sent with a Discord message.
2916
+ *
2917
+ * @typeParam Omitted - Specify the properties that will not be stored in the raw data field as a union, implement via `DataTemplate`
2918
+ * @see {@link https://docs.discord.com/developers/resources/message#shared-client-theme-object}
2919
+ */
2920
+ declare class SharedClientTheme<Omitted extends keyof APIMessageSharedClientTheme | '' = ''> extends Structure<APIMessageSharedClientTheme, Omitted> {
2921
+ /**
2922
+ * The template used for removing data from the raw data stored for each SharedClientTheme.
2923
+ */
2924
+ static DataTemplate: Partial<APIMessageSharedClientTheme>;
2925
+ /**
2926
+ * @param data - The raw data received from the API for the shared client theme
2927
+ */
2928
+ constructor(data: Partialize<APIMessageSharedClientTheme, Omitted>);
2929
+ /**
2930
+ * The hexadecimal-encoded colors of this theme (max of 5)
2931
+ */
2932
+ get colors(): "colors" extends infer T ? T extends "colors" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never;
2933
+ /**
2934
+ * The gradient angle (direction) of this theme's colors (0–360)
2935
+ */
2936
+ get gradientAngle(): "gradient_angle" extends infer T ? T extends "gradient_angle" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never;
2937
+ /**
2938
+ * The base mix (intensity) of this theme's colors (0–100)
2939
+ */
2940
+ get baseMix(): "base_mix" extends infer T ? T extends "base_mix" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never;
2941
+ /**
2942
+ * The base theme mode
2943
+ *
2944
+ * @see {@link https://docs.discord.com/developers/resources/message#base-theme-types}
2945
+ */
2946
+ get baseTheme(): ("base_theme" extends infer T ? T extends "base_theme" ? T extends Omitted ? unknown : APIMessageSharedClientTheme[T] : never : never) | undefined;
2947
+ }
2948
+
2914
2949
  /**
2915
2950
  * Represents a poll on a message on Discord.
2916
2951
  *
@@ -3782,7 +3817,7 @@ declare class Subscription<Omitted extends keyof APISubscription | '' = 'cancele
3782
3817
  */
3783
3818
  get currentPeriodEndsAt(): Date | null;
3784
3819
  /**
3785
- * The {@link SubscriptionStatus} of the current subscription
3820
+ * The {@link discord-api-types/v10#SubscriptionStatus} of the current subscription
3786
3821
  */
3787
3822
  get status(): "status" extends infer T ? T extends "status" ? T extends Omitted ? unknown : APISubscription[T] : never : never;
3788
3823
  /**
@@ -3792,7 +3827,7 @@ declare class Subscription<Omitted extends keyof APISubscription | '' = 'cancele
3792
3827
  /**
3793
3828
  * The time when the subscription was canceled
3794
3829
  *
3795
- * @remarks This is populated when the {@link Subscription#status} transitions to {@link SubscriptionStatus.Ending}.
3830
+ * @remarks This is populated when the {@link Subscription.status} transitions to {@link discord-api-types/v10#SubscriptionStatus.Ending}.
3796
3831
  */
3797
3832
  get canceledAt(): Date | null;
3798
3833
  /**
@@ -3818,10 +3853,9 @@ declare function extendTemplate<SuperTemplate extends Record<string, unknown>>(s
3818
3853
  * Turns a JavaScript Date object into the timestamp format used by Discord in payloads.
3819
3854
  * E.g. `2025-11-16T14:09:25.239000+00:00`
3820
3855
  *
3821
- * @private
3822
- * @param date a Date instance
3856
+ * @param date - a Date instance
3823
3857
  * @returns an ISO8601 timestamp with microseconds precision and explicit +00:00 timezone
3824
3858
  */
3825
3859
  declare function dateToDiscordISOTimestamp(date: Date): string;
3826
3860
 
3827
- export { type APIActualInvite, ActionRowComponent, AnnouncementChannel, AnnouncementThreadChannel, ApplicationCommandInteractionMetadata, AppliedTagsMixin, Attachment, AttachmentFlagsBitField, AutoModerationAction, AutoModerationActionMetadata, AutoModerationRule, AutoModerationRuleTriggerMetadata, AvatarDecorationData, BitField, type BitFieldResolvable, ButtonComponent, type ButtonDataType, CategoryChannel, Channel, type ChannelDataType, ChannelFlagsBitField, ChannelMention, ChannelOwnerMixin, ChannelParentMixin, ChannelPermissionMixin, ChannelPinMixin, ChannelSelectMenuComponent, ChannelSlowmodeMixin, ChannelTopicMixin, ChannelWebhookMixin, type CollapseUnion, Component, type ComponentDataType, ComponentEmoji, Connection, ContainerComponent, DMChannel, DMChannelMixin, DataTemplatePropertyName, Embed, EmbedAuthor, EmbedField, EmbedFooter, EmbedImage, EmbedProvider, EmbedThumbnail, EmbedVideo, Emoji, Entitlement, type EnumLike, FileComponent, FileUploadComponent, ForumChannel, ForumTag, GroupDMChannel, GroupDMMixin, GuildChannelMixin, type If, InteractionMetadata, type InteractionMetadataType, InteractiveButtonComponent, Invite, LabeledButtonComponent, LinkButtonComponent, MediaChannel, MediaGalleryComponent, MediaGalleryItem, MentionableSelectMenuComponent, type MergePrototype, type MergePrototypes, Message, MessageActivity, MessageCall, MessageComponentInteractionMetadata, MessageFlagsBitField, MessageReference, Mixin, type MixinBase, type MixinTypes, type Mixinable, ModalSubmitInteractionMetadata, type NonAbstract, OptimizeDataPropertyName, type OptionalPropertyNames, type PartialChannel, type Partialize, PermissionOverwrite, PermissionsBitField, Poll, PollAnswer, PollAnswerCount, PollMedia, PollResults, PremiumButtonComponent, PrivateThreadChannel, PublicThreadChannel, Reaction, ReactionCountDetails, type RecursiveReadonlyArray, type ReplaceOmittedWithUnknown, ResolvedInteractionData, RoleSelectMenuComponent, RoleSubscriptionData, SKU, SKUFlagsBitField, SectionComponent, SelectMenuComponent, SelectMenuDefaultValue, SeparatorComponent, SoundboardSound, StageChannel, StageInstance, Sticker, StickerPack, StringSelectMenuComponent, StringSelectMenuOption, Structure, Subscription, Team, TeamMember, TextChannel, TextChannelMixin, TextDisplayComponent, TextInputComponent, ThreadChannelMixin, ThreadMetadata, ThreadOnlyChannelMixin, ThumbnailComponent, UnfurledMediaItem, User, UserSelectMenuComponent, VoiceChannel, VoiceChannelMixin, VoiceRegion, VoiceState, Webhook, dateToDiscordISOTimestamp, extendTemplate };
3861
+ export { type APIActualInvite, ActionRowComponent, AnnouncementChannel, AnnouncementThreadChannel, ApplicationCommandInteractionMetadata, AppliedTagsMixin, Attachment, AttachmentFlagsBitField, AutoModerationAction, AutoModerationActionMetadata, AutoModerationRule, AutoModerationRuleTriggerMetadata, AvatarDecorationData, BitField, type BitFieldResolvable, ButtonComponent, type ButtonDataType, CategoryChannel, Channel, type ChannelDataType, ChannelFlagsBitField, ChannelMention, ChannelOwnerMixin, ChannelParentMixin, ChannelPermissionMixin, ChannelPinMixin, ChannelSelectMenuComponent, ChannelSlowmodeMixin, ChannelTopicMixin, ChannelWebhookMixin, type CollapseUnion, Component, type ComponentDataType, ComponentEmoji, Connection, ContainerComponent, DMChannel, DMChannelMixin, DataTemplatePropertyName, Embed, EmbedAuthor, EmbedField, EmbedFooter, EmbedImage, EmbedProvider, EmbedThumbnail, EmbedVideo, Emoji, Entitlement, type EnumLike, FileComponent, FileUploadComponent, ForumChannel, ForumTag, GroupDMChannel, GroupDMMixin, GuildChannelMixin, type If, InteractionMetadata, type InteractionMetadataType, InteractiveButtonComponent, Invite, LabeledButtonComponent, LinkButtonComponent, MediaChannel, MediaGalleryComponent, MediaGalleryItem, MentionableSelectMenuComponent, type MergePrototype, type MergePrototypes, Message, MessageActivity, MessageCall, MessageComponentInteractionMetadata, MessageFlagsBitField, MessageReference, Mixin, type MixinBase, type MixinTypes, type Mixinable, ModalSubmitInteractionMetadata, type NonAbstract, OptimizeDataPropertyName, type OptionalPropertyNames, type PartialChannel, type Partialize, PermissionOverwrite, PermissionsBitField, Poll, PollAnswer, PollAnswerCount, PollMedia, PollResults, PremiumButtonComponent, PrivateThreadChannel, PublicThreadChannel, Reaction, ReactionCountDetails, type RecursiveReadonlyArray, type ReplaceOmittedWithUnknown, ResolvedInteractionData, RoleSelectMenuComponent, RoleSubscriptionData, SKU, SKUFlagsBitField, SectionComponent, SelectMenuComponent, SelectMenuDefaultValue, SeparatorComponent, SharedClientTheme, SoundboardSound, StageChannel, StageInstance, Sticker, StickerPack, StringSelectMenuComponent, StringSelectMenuOption, Structure, Subscription, Team, TeamMember, TextChannel, TextChannelMixin, TextDisplayComponent, TextInputComponent, ThreadChannelMixin, ThreadMetadata, ThreadOnlyChannelMixin, ThumbnailComponent, UnfurledMediaItem, User, UserSelectMenuComponent, VoiceChannel, VoiceChannelMixin, VoiceRegion, VoiceState, Webhook, dateToDiscordISOTimestamp, extendTemplate };
package/dist/index.js CHANGED
@@ -110,6 +110,7 @@ __export(index_exports, {
110
110
  SelectMenuComponent: () => SelectMenuComponent,
111
111
  SelectMenuDefaultValue: () => SelectMenuDefaultValue,
112
112
  SeparatorComponent: () => SeparatorComponent,
113
+ SharedClientTheme: () => SharedClientTheme,
113
114
  SoundboardSound: () => SoundboardSound,
114
115
  StageChannel: () => StageChannel,
115
116
  StageInstance: () => StageInstance,
@@ -305,7 +306,7 @@ var AutoModerationActionMetadata = class extends Structure {
305
306
  /**
306
307
  * Channel to which user content should be logged. This must be an existing channel
307
308
  *
308
- * Associated action types: {@link AutoModerationActionType.SendAlertMessage}
309
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.SendAlertMessage}
309
310
  */
310
311
  get channelId() {
311
312
  return this[kData].channel_id;
@@ -313,11 +314,11 @@ var AutoModerationActionMetadata = class extends Structure {
313
314
  /**
314
315
  * Timeout duration in seconds. Maximum of 2419200 seconds (4 weeks).
315
316
  *
316
- * A `TIMEOUT` action can only be set up for {@link AutoModerationRuleTriggerType.Keyword} and {@link AutoModerationRuleTriggerType.MentionSpam}.
317
+ * A `TIMEOUT` action can only be set up for {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword} and {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}.
317
318
  *
318
- * The `MODERATE_MEMBERS` permission is required to use {@link AutoModerationActionType.Timeout} actions.
319
+ * The `MODERATE_MEMBERS` permission is required to use {@link discord-api-types/v10#AutoModerationActionType.Timeout} actions.
319
320
  *
320
- * Associated action types: {@link AutoModerationActionType.Timeout}
321
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.Timeout}
321
322
  */
322
323
  get durationSeconds() {
323
324
  return this[kData].duration_seconds;
@@ -325,7 +326,7 @@ var AutoModerationActionMetadata = class extends Structure {
325
326
  /**
326
327
  * Additional explanation that will be shown to members whenever their message is blocked. Maximum of 150 characters
327
328
  *
328
- * Associated action types: {@link AutoModerationActionType.BlockMessage}
329
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.BlockMessage}
329
330
  */
330
331
  get customMessage() {
331
332
  return this[kData].custom_message;
@@ -419,7 +420,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
419
420
  *
420
421
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
421
422
  *
422
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
423
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
423
424
  */
424
425
  get keywordFilter() {
425
426
  return this[kData].keyword_filter;
@@ -431,7 +432,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
431
432
  *
432
433
  * Each regex pattern must be 260 characters or less.
433
434
  *
434
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
435
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
435
436
  */
436
437
  get regexPatterns() {
437
438
  return this[kData].regex_patterns;
@@ -441,7 +442,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
441
442
  *
442
443
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types | Keyword preset types}
443
444
  *
444
- * Associated trigger types: {@link AutoModerationRuleTriggerType.KeywordPreset}
445
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}
445
446
  */
446
447
  get presets() {
447
448
  return this[kData].presets;
@@ -460,7 +461,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
460
461
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types | triggerType}
461
462
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
462
463
  *
463
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.KeywordPreset}, {@link AutoModerationRuleTriggerType.MemberProfile}
464
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
464
465
  */
465
466
  get allowList() {
466
467
  return this[kData].allow_list;
@@ -468,7 +469,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
468
469
  /**
469
470
  * Total number of unique role and user mentions allowed per message (Maximum of 50)
470
471
  *
471
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
472
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
472
473
  */
473
474
  get mentionTotalLimit() {
474
475
  return this[kData].mention_total_limit;
@@ -476,7 +477,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
476
477
  /**
477
478
  * Whether to automatically detect mention raids
478
479
  *
479
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
480
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
480
481
  */
481
482
  get mentionRaidProtectionEnabled() {
482
483
  return this[kData].mention_raid_protection_enabled;
@@ -3942,6 +3943,49 @@ var RoleSubscriptionData = class extends Structure {
3942
3943
  }
3943
3944
  };
3944
3945
 
3946
+ // src/messages/SharedClientTheme.ts
3947
+ var SharedClientTheme = class extends Structure {
3948
+ static {
3949
+ __name(this, "SharedClientTheme");
3950
+ }
3951
+ /**
3952
+ * The template used for removing data from the raw data stored for each SharedClientTheme.
3953
+ */
3954
+ static DataTemplate = {};
3955
+ /**
3956
+ * @param data - The raw data received from the API for the shared client theme
3957
+ */
3958
+ constructor(data) {
3959
+ super(data);
3960
+ }
3961
+ /**
3962
+ * The hexadecimal-encoded colors of this theme (max of 5)
3963
+ */
3964
+ get colors() {
3965
+ return this[kData].colors;
3966
+ }
3967
+ /**
3968
+ * The gradient angle (direction) of this theme's colors (0–360)
3969
+ */
3970
+ get gradientAngle() {
3971
+ return this[kData].gradient_angle;
3972
+ }
3973
+ /**
3974
+ * The base mix (intensity) of this theme's colors (0–100)
3975
+ */
3976
+ get baseMix() {
3977
+ return this[kData].base_mix;
3978
+ }
3979
+ /**
3980
+ * The base theme mode
3981
+ *
3982
+ * @see {@link https://docs.discord.com/developers/resources/message#base-theme-types}
3983
+ */
3984
+ get baseTheme() {
3985
+ return this[kData].base_theme;
3986
+ }
3987
+ };
3988
+
3945
3989
  // src/polls/Poll.ts
3946
3990
  var Poll = class extends Structure {
3947
3991
  static {
@@ -5126,7 +5170,7 @@ var Subscription = class extends Structure {
5126
5170
  return endTimestamp ? new Date(endTimestamp) : null;
5127
5171
  }
5128
5172
  /**
5129
- * The {@link SubscriptionStatus} of the current subscription
5173
+ * The {@link discord-api-types/v10#SubscriptionStatus} of the current subscription
5130
5174
  */
5131
5175
  get status() {
5132
5176
  return this[kData].status;
@@ -5140,7 +5184,7 @@ var Subscription = class extends Structure {
5140
5184
  /**
5141
5185
  * The time when the subscription was canceled
5142
5186
  *
5143
- * @remarks This is populated when the {@link Subscription#status} transitions to {@link SubscriptionStatus.Ending}.
5187
+ * @remarks This is populated when the {@link Subscription.status} transitions to {@link discord-api-types/v10#SubscriptionStatus.Ending}.
5144
5188
  */
5145
5189
  get canceledAt() {
5146
5190
  const canceledTimestamp = this.canceledTimestamp;
@@ -5276,6 +5320,7 @@ var Subscription = class extends Structure {
5276
5320
  SelectMenuComponent,
5277
5321
  SelectMenuDefaultValue,
5278
5322
  SeparatorComponent,
5323
+ SharedClientTheme,
5279
5324
  SoundboardSound,
5280
5325
  StageChannel,
5281
5326
  StageInstance,