@discordjs/builders 2.0.0-dev.1777075897-40ce0791a → 2.0.0-dev.1779528402-e721e51b0

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 { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIBaseComponent, ComponentType, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APIFileUploadComponent, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APILabelComponent, APIFileComponent, APIMediaGalleryItem, APIMediaGalleryComponent, APITextDisplayComponent, APIThumbnailComponent, APISectionComponent, ButtonStyle, APISeparatorComponent, SeparatorSpacingSize, APIContainerComponent, APIActionRowComponent, APIComponentInMessageActionRow, APIComponentInContainer, APIModalComponent, APIMessageComponent, APISectionAccessoryComponent, APIComponentInActionRow, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, ApplicationCommandOptionAllowedChannelType, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, ApplicationCommandType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, RESTAPIMessageReference, RESTPostAPIChannelMessageJSONBody, APIMessageReference, APIMessageTopLevelComponent, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
2
+ import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIBaseComponent, ComponentType, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APIFileUploadComponent, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APILabelComponent, APIFileComponent, APIMediaGalleryItem, APIMediaGalleryComponent, APITextDisplayComponent, APIThumbnailComponent, APISectionComponent, ButtonStyle, APISeparatorComponent, SeparatorSpacingSize, APIContainerComponent, APIActionRowComponent, APIComponentInMessageActionRow, APIComponentInContainer, APIModalComponent, APIMessageComponent, APISectionAccessoryComponent, APIComponentInActionRow, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, ApplicationCommandOptionAllowedChannelType, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, ApplicationCommandType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, BaseThemeType, RESTAPIAttachment, RESTAPIMessageReference, APIMessageSharedClientTheme, RESTPostAPIChannelMessageJSONBody, APIMessageReference, APIMessageTopLevelComponent, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
3
3
  import { JSONEncodable, RawFile, FileBodyEncodable, FileBodyEncodableResult } from '@discordjs/util';
4
4
  export { RawFile } from '@discordjs/util';
5
5
  import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
@@ -2433,7 +2433,7 @@ declare class ChatInputCommandIntegerOption extends ChatInputCommandIntegerOptio
2433
2433
  description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
2434
2434
  }, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
2435
2435
  autocomplete: zod.ZodLiteral<true>;
2436
- choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
2436
+ choices: zod.ZodOptional<zod.ZodArray<zod.ZodAny>>;
2437
2437
  }, zod_v4_core.$strip>, zod.ZodObject<{
2438
2438
  choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2439
2439
  value: zod.ZodNumber;
@@ -2495,7 +2495,7 @@ declare class ChatInputCommandNumberOption extends ChatInputCommandNumberOption_
2495
2495
  description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
2496
2496
  }, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
2497
2497
  autocomplete: zod.ZodLiteral<true>;
2498
- choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
2498
+ choices: zod.ZodOptional<zod.ZodArray<zod.ZodAny>>;
2499
2499
  }, zod_v4_core.$strip>, zod.ZodObject<{
2500
2500
  choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2501
2501
  value: zod.ZodNumber;
@@ -2556,7 +2556,7 @@ declare class ChatInputCommandStringOption extends ChatInputCommandStringOption_
2556
2556
  description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
2557
2557
  }, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
2558
2558
  autocomplete: zod.ZodLiteral<true>;
2559
- choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
2559
+ choices: zod.ZodOptional<zod.ZodArray<zod.ZodAny>>;
2560
2560
  }, zod_v4_core.$strip>, zod.ZodObject<{
2561
2561
  choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2562
2562
  value: zod.ZodString;
@@ -2867,7 +2867,7 @@ declare const integerOptionPredicate: z.ZodIntersection<z.ZodObject<{
2867
2867
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
2868
2868
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2869
2869
  autocomplete: z.ZodLiteral<true>;
2870
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
2870
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2871
2871
  }, z.core.$strip>, z.ZodObject<{
2872
2872
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2873
2873
  value: z.ZodNumber;
@@ -2887,7 +2887,7 @@ declare const numberOptionPredicate: z.ZodIntersection<z.ZodObject<{
2887
2887
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
2888
2888
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2889
2889
  autocomplete: z.ZodLiteral<true>;
2890
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
2890
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2891
2891
  }, z.core.$strip>, z.ZodObject<{
2892
2892
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2893
2893
  value: z.ZodNumber;
@@ -2907,7 +2907,7 @@ declare const stringOptionPredicate: z.ZodIntersection<z.ZodObject<{
2907
2907
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
2908
2908
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2909
2909
  autocomplete: z.ZodLiteral<true>;
2910
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
2910
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2911
2911
  }, z.core.$strip>, z.ZodObject<{
2912
2912
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2913
2913
  value: z.ZodString;
@@ -2972,7 +2972,7 @@ declare const chatInputCommandSubcommandPredicate: z.ZodObject<{
2972
2972
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
2973
2973
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2974
2974
  autocomplete: z.ZodLiteral<true>;
2975
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
2975
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2976
2976
  }, z.core.$strip>, z.ZodObject<{
2977
2977
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2978
2978
  value: z.ZodNumber;
@@ -2991,7 +2991,7 @@ declare const chatInputCommandSubcommandPredicate: z.ZodObject<{
2991
2991
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
2992
2992
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2993
2993
  autocomplete: z.ZodLiteral<true>;
2994
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
2994
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2995
2995
  }, z.core.$strip>, z.ZodObject<{
2996
2996
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2997
2997
  value: z.ZodNumber;
@@ -3010,7 +3010,7 @@ declare const chatInputCommandSubcommandPredicate: z.ZodObject<{
3010
3010
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3011
3011
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3012
3012
  autocomplete: z.ZodLiteral<true>;
3013
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3013
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3014
3014
  }, z.core.$strip>, z.ZodObject<{
3015
3015
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3016
3016
  value: z.ZodString;
@@ -3082,7 +3082,7 @@ declare const chatInputCommandSubcommandGroupPredicate: z.ZodObject<{
3082
3082
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3083
3083
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3084
3084
  autocomplete: z.ZodLiteral<true>;
3085
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3085
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3086
3086
  }, z.core.$strip>, z.ZodObject<{
3087
3087
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3088
3088
  value: z.ZodNumber;
@@ -3101,7 +3101,7 @@ declare const chatInputCommandSubcommandGroupPredicate: z.ZodObject<{
3101
3101
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3102
3102
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3103
3103
  autocomplete: z.ZodLiteral<true>;
3104
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3104
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3105
3105
  }, z.core.$strip>, z.ZodObject<{
3106
3106
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3107
3107
  value: z.ZodNumber;
@@ -3120,7 +3120,7 @@ declare const chatInputCommandSubcommandGroupPredicate: z.ZodObject<{
3120
3120
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3121
3121
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3122
3122
  autocomplete: z.ZodLiteral<true>;
3123
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3123
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3124
3124
  }, z.core.$strip>, z.ZodObject<{
3125
3125
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3126
3126
  value: z.ZodString;
@@ -3198,7 +3198,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3198
3198
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3199
3199
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3200
3200
  autocomplete: z.ZodLiteral<true>;
3201
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3201
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3202
3202
  }, z.core.$strip>, z.ZodObject<{
3203
3203
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3204
3204
  value: z.ZodNumber;
@@ -3217,7 +3217,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3217
3217
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3218
3218
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3219
3219
  autocomplete: z.ZodLiteral<true>;
3220
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3220
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3221
3221
  }, z.core.$strip>, z.ZodObject<{
3222
3222
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3223
3223
  value: z.ZodNumber;
@@ -3236,7 +3236,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3236
3236
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3237
3237
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3238
3238
  autocomplete: z.ZodLiteral<true>;
3239
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3239
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3240
3240
  }, z.core.$strip>, z.ZodObject<{
3241
3241
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3242
3242
  value: z.ZodString;
@@ -3300,7 +3300,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3300
3300
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3301
3301
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3302
3302
  autocomplete: z.ZodLiteral<true>;
3303
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3303
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3304
3304
  }, z.core.$strip>, z.ZodObject<{
3305
3305
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3306
3306
  value: z.ZodNumber;
@@ -3319,7 +3319,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3319
3319
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3320
3320
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3321
3321
  autocomplete: z.ZodLiteral<true>;
3322
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3322
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3323
3323
  }, z.core.$strip>, z.ZodObject<{
3324
3324
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3325
3325
  value: z.ZodNumber;
@@ -3338,7 +3338,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3338
3338
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3339
3339
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3340
3340
  autocomplete: z.ZodLiteral<true>;
3341
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3341
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3342
3342
  }, z.core.$strip>, z.ZodObject<{
3343
3343
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3344
3344
  value: z.ZodString;
@@ -3409,7 +3409,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3409
3409
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3410
3410
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3411
3411
  autocomplete: z.ZodLiteral<true>;
3412
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3412
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3413
3413
  }, z.core.$strip>, z.ZodObject<{
3414
3414
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3415
3415
  value: z.ZodNumber;
@@ -3428,7 +3428,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3428
3428
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3429
3429
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3430
3430
  autocomplete: z.ZodLiteral<true>;
3431
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3431
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3432
3432
  }, z.core.$strip>, z.ZodObject<{
3433
3433
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3434
3434
  value: z.ZodNumber;
@@ -3447,7 +3447,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
3447
3447
  description_localizations: z.ZodOptional<z.ZodObject<Record<discord_api_types_v10.Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>>;
3448
3448
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3449
3449
  autocomplete: z.ZodLiteral<true>;
3450
- choices: z.ZodUnion<readonly [z.ZodNever, z.ZodArray<z.ZodNever>, z.ZodUndefined]>;
3450
+ choices: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3451
3451
  }, z.core.$strip>, z.ZodObject<{
3452
3452
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3453
3453
  value: z.ZodString;
@@ -4620,6 +4620,12 @@ declare const messageReferencePredicate: z.ZodObject<{
4620
4620
  message_id: z.ZodString;
4621
4621
  type: z.ZodOptional<z.ZodEnum<typeof MessageReferenceType>>;
4622
4622
  }, z.core.$strip>;
4623
+ declare const sharedClientThemePredicate: z.ZodObject<{
4624
+ colors: z.ZodArray<z.ZodString>;
4625
+ gradient_angle: z.ZodInt;
4626
+ base_mix: z.ZodInt;
4627
+ base_theme: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof BaseThemeType>>>;
4628
+ }, z.core.$strip>;
4623
4629
  declare const messagePredicate: z.ZodUnion<readonly [z.ZodObject<{
4624
4630
  nonce: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4625
4631
  tts: z.ZodOptional<z.ZodBoolean>;
@@ -4692,6 +4698,12 @@ declare const messagePredicate: z.ZodUnion<readonly [z.ZodObject<{
4692
4698
  allow_multiselect: z.ZodOptional<z.ZodBoolean>;
4693
4699
  layout_type: z.ZodOptional<z.ZodEnum<typeof discord_api_types_v10.PollLayoutType>>;
4694
4700
  }, z.core.$strip>>;
4701
+ shared_client_theme: z.ZodOptional<z.ZodObject<{
4702
+ colors: z.ZodArray<z.ZodString>;
4703
+ gradient_angle: z.ZodInt;
4704
+ base_mix: z.ZodInt;
4705
+ base_theme: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof BaseThemeType>>>;
4706
+ }, z.core.$strip>>;
4695
4707
  components: z.ZodOptional<z.ZodArray<z.ZodObject<{
4696
4708
  type: z.ZodLiteral<ComponentType.ActionRow>;
4697
4709
  components: z.ZodArray<z.ZodObject<{
@@ -4737,6 +4749,7 @@ declare const messagePredicate: z.ZodUnion<readonly [z.ZodObject<{
4737
4749
  embeds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNever>>>;
4738
4750
  sticker_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNever>>>;
4739
4751
  poll: z.ZodOptional<z.ZodNull>;
4752
+ shared_client_theme: z.ZodOptional<z.ZodNull>;
4740
4753
  }, z.core.$strip>]>;
4741
4754
  declare const fileBodyMessagePredicate: z.ZodObject<{
4742
4755
  body: z.ZodUnion<readonly [z.ZodObject<{
@@ -4811,6 +4824,12 @@ declare const fileBodyMessagePredicate: z.ZodObject<{
4811
4824
  allow_multiselect: z.ZodOptional<z.ZodBoolean>;
4812
4825
  layout_type: z.ZodOptional<z.ZodEnum<typeof discord_api_types_v10.PollLayoutType>>;
4813
4826
  }, z.core.$strip>>;
4827
+ shared_client_theme: z.ZodOptional<z.ZodObject<{
4828
+ colors: z.ZodArray<z.ZodString>;
4829
+ gradient_angle: z.ZodInt;
4830
+ base_mix: z.ZodInt;
4831
+ base_theme: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof BaseThemeType>>>;
4832
+ }, z.core.$strip>>;
4814
4833
  components: z.ZodOptional<z.ZodArray<z.ZodObject<{
4815
4834
  type: z.ZodLiteral<ComponentType.ActionRow>;
4816
4835
  components: z.ZodArray<z.ZodObject<{
@@ -4856,6 +4875,7 @@ declare const fileBodyMessagePredicate: z.ZodObject<{
4856
4875
  embeds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNever>>>;
4857
4876
  sticker_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNever>>>;
4858
4877
  poll: z.ZodOptional<z.ZodNull>;
4878
+ shared_client_theme: z.ZodOptional<z.ZodNull>;
4859
4879
  }, z.core.$strip>]>;
4860
4880
  files: z.ZodArray<z.ZodObject<{
4861
4881
  data: z.ZodUnion<readonly [z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodString]>;
@@ -4876,7 +4896,7 @@ declare class AttachmentBuilder implements JSONEncodable<RESTAPIAttachment> {
4876
4896
  /**
4877
4897
  * This data is not included in the output of `toJSON()`. For this class specifically, this refers to binary data
4878
4898
  * that will wind up being included in the multipart/form-data request, if used with the `MessageBuilder`.
4879
- * To retrieve this data, use {@link getRawFile}.
4899
+ * To retrieve this data, use {@link AttachmentBuilder.getRawFile}.
4880
4900
  *
4881
4901
  * @remarks This cannot be set via the constructor, primarily because of the behavior described
4882
4902
  * {@link https://discord.com/developers/docs/reference#editing-message-attachments | here}.
@@ -4934,7 +4954,7 @@ declare class AttachmentBuilder implements JSONEncodable<RESTAPIAttachment> {
4934
4954
  * Sets the file data to upload with this attachment.
4935
4955
  *
4936
4956
  * @param data - The file data
4937
- * @remarks Note that this data is NOT included in the {@link toJSON} output. To retrieve it, use {@link getRawFile}.
4957
+ * @remarks Note that this data is NOT included in the {@link AttachmentBuilder.toJSON} output. To retrieve it, use {@link AttachmentBuilder.getRawFile}.
4938
4958
  */
4939
4959
  setFileData(data: Buffer | Uint8Array | string): this;
4940
4960
  /**
@@ -4944,7 +4964,7 @@ declare class AttachmentBuilder implements JSONEncodable<RESTAPIAttachment> {
4944
4964
  /**
4945
4965
  * Sets the content type of the file data to upload with this attachment.
4946
4966
  *
4947
- * @remarks Note that this data is NOT included in the {@link toJSON} output. To retrieve it, use {@link getRawFile}.
4967
+ * @remarks Note that this data is NOT included in the {@link AttachmentBuilder.toJSON} output. To retrieve it, use {@link AttachmentBuilder.getRawFile}.
4948
4968
  */
4949
4969
  setFileContentType(contentType: string): this;
4950
4970
  /**
@@ -4952,9 +4972,9 @@ declare class AttachmentBuilder implements JSONEncodable<RESTAPIAttachment> {
4952
4972
  */
4953
4973
  clearFileContentType(): this;
4954
4974
  /**
4955
- * Converts this attachment to a {@link RawFile} for uploading.
4975
+ * Converts this attachment to a {@link @discordjs/util#RawFile} for uploading.
4956
4976
  *
4957
- * @returns A {@link RawFile} object, or `undefined` if no file data is set
4977
+ * @returns A {@link @discordjs/util#RawFile} object, or `undefined` if no file data is set
4958
4978
  */
4959
4979
  getRawFile(): Partial<RawFile> | undefined;
4960
4980
  /**
@@ -5053,13 +5073,72 @@ declare class MessageReferenceBuilder implements JSONEncodable<RESTAPIMessageRef
5053
5073
  toJSON(validationOverride?: boolean): RESTAPIMessageReference;
5054
5074
  }
5055
5075
 
5056
- interface MessageBuilderData extends Partial<Omit<RESTPostAPIChannelMessageJSONBody, 'allowed_mentions' | 'attachments' | 'components' | 'embeds' | 'message_reference' | 'poll'>> {
5076
+ /**
5077
+ * A builder that creates API-compatible JSON data for shared client themes.
5078
+ */
5079
+ declare class SharedClientThemeBuilder implements JSONEncodable<APIMessageSharedClientTheme> {
5080
+ /**
5081
+ * The API data associated with this shared client theme.
5082
+ */
5083
+ private readonly data;
5084
+ /**
5085
+ * Creates a new shared client theme builder.
5086
+ *
5087
+ * @param data - The API data to create this shared client theme with
5088
+ */
5089
+ constructor(data?: Partial<APIMessageSharedClientTheme>);
5090
+ /**
5091
+ * Sets the colors of this theme.
5092
+ *
5093
+ * @remarks
5094
+ * A maximum of 5 hexadecimal-encoded colors may be provided.
5095
+ * @param colors - The hexadecimal-encoded colors to set (e.g. `'5865F2'`)
5096
+ */
5097
+ setColors(...colors: RestOrArray<string>): this;
5098
+ /**
5099
+ * Sets the gradient angle of this theme.
5100
+ *
5101
+ * @remarks
5102
+ * The value must be between `0` and `360` (inclusive).
5103
+ * @param angle - The gradient angle (direction of theme colors)
5104
+ */
5105
+ setGradientAngle(angle: number): this;
5106
+ /**
5107
+ * Sets the base mix (intensity) of this theme.
5108
+ *
5109
+ * @remarks
5110
+ * The value must be between `0` and `100` (inclusive).
5111
+ * @param baseMix - The base mix intensity
5112
+ */
5113
+ setBaseMix(baseMix: number): this;
5114
+ /**
5115
+ * Sets the base theme (mode) of this theme.
5116
+ *
5117
+ * @param baseTheme - The base theme mode
5118
+ */
5119
+ setBaseTheme(baseTheme: BaseThemeType): this;
5120
+ /**
5121
+ * Clears the base theme of this theme.
5122
+ */
5123
+ clearBaseTheme(): this;
5124
+ /**
5125
+ * Serializes this builder to API-compatible JSON data.
5126
+ *
5127
+ * Note that by disabling validation, there is no guarantee that the resulting object will be valid.
5128
+ *
5129
+ * @param validationOverride - Force validation to run/not run regardless of your global preference
5130
+ */
5131
+ toJSON(validationOverride?: boolean): APIMessageSharedClientTheme;
5132
+ }
5133
+
5134
+ interface MessageBuilderData extends Partial<Omit<RESTPostAPIChannelMessageJSONBody, 'allowed_mentions' | 'attachments' | 'components' | 'embeds' | 'message_reference' | 'poll' | 'shared_client_theme'>> {
5057
5135
  allowed_mentions?: AllowedMentionsBuilder;
5058
5136
  attachments: AttachmentBuilder[];
5059
5137
  components: MessageTopLevelComponentBuilder[];
5060
5138
  embeds: EmbedBuilder[];
5061
5139
  message_reference?: MessageReferenceBuilder;
5062
5140
  poll?: PollBuilder;
5141
+ shared_client_theme?: SharedClientThemeBuilder;
5063
5142
  }
5064
5143
  /**
5065
5144
  * A builder that creates API-compatible JSON data for messages.
@@ -5389,6 +5468,22 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
5389
5468
  * Clears the poll for this message.
5390
5469
  */
5391
5470
  clearPoll(): this;
5471
+ /**
5472
+ * Sets the shared client theme for this message.
5473
+ *
5474
+ * @param theme - The shared client theme to set
5475
+ */
5476
+ setSharedClientTheme(theme: APIMessageSharedClientTheme | SharedClientThemeBuilder | ((builder: SharedClientThemeBuilder) => SharedClientThemeBuilder)): this;
5477
+ /**
5478
+ * Updates the shared client theme for this message (and creates it if it doesn't exist).
5479
+ *
5480
+ * @param updater - The function to update the shared client theme with
5481
+ */
5482
+ updateSharedClientTheme(updater: (builder: SharedClientThemeBuilder) => void): this;
5483
+ /**
5484
+ * Clears the shared client theme for this message.
5485
+ */
5486
+ clearSharedClientTheme(): this;
5392
5487
  /**
5393
5488
  * Serializes this builder to API-compatible JSON data.
5394
5489
  *
@@ -5466,4 +5561,4 @@ declare const localeMapPredicate: z.ZodObject<Record<Locale, z.ZodOptional<z.Zod
5466
5561
  */
5467
5562
  declare const version: string;
5468
5563
 
5469
- export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type AnyModalComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContainerBuilder, type ContainerBuilderData, type ContainerComponentBuilders, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, FileUploadBuilder, LabelBuilder, type LabelBuilderData, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type MessageTopLevelComponentBuilder, type ModalActionRowComponentBuilder, ModalBuilder, type ModalBuilderData, type ModalComponentBuilder, PollAnswerBuilder, type PollAnswerData, PollAnswerMediaBuilder, PollBuilder, type PollData, PollMediaBuilder, PollQuestionBuilder, PremiumButtonBuilder, PrimaryButtonBuilder, type RestOrArray, RoleSelectMenuBuilder, SecondaryButtonBuilder, SectionBuilder, type SectionBuilderAccessory, type SectionBuilderData, SeparatorBuilder, SharedChatInputCommandOptions, type SharedChatInputCommandOptionsData, SharedChatInputCommandSubcommands, type SharedChatInputCommandSubcommandsData, SharedName, SharedNameAndDescription, type SharedNameAndDescriptionData, type SharedNameData, StringSelectMenuBuilder, type StringSelectMenuData, StringSelectMenuOptionBuilder, SuccessButtonBuilder, TextDisplayBuilder, TextInputBuilder, ThumbnailBuilder, UserContextCommandBuilder, UserSelectMenuBuilder, ValidationError, actionRowPredicate, allowedMentionPredicate, attachmentOptionPredicate, attachmentPredicate, baseBasicOptionPredicate, booleanOptionPredicate, buttonPredicate, channelOptionPredicate, chatInputCommandPredicate, chatInputCommandSubcommandGroupPredicate, chatInputCommandSubcommandPredicate, containerPredicate, createComponentBuilder, customIdPredicate, disableValidators, embedAuthorPredicate, embedFieldPredicate, embedFooterPredicate, embedPredicate, emojiPredicate, enableValidators, fileBodyMessagePredicate, filePredicate, fileUploadPredicate, idPredicate, integerOptionPredicate, isValidationEnabled, labelPredicate, localeMapPredicate, mediaGalleryItemPredicate, mediaGalleryPredicate, memberPermissionsPredicate, mentionableOptionPredicate, messageCommandPredicate, messagePredicate, messageReferencePredicate, modalPredicate, normalizeArray, numberOptionPredicate, pollAnswerMediaPredicate, pollAnswerPredicate, pollPredicate, pollQuestionPredicate, rawFilePredicate, resolveAccessoryComponent, resolveBuilder, roleOptionPredicate, sectionPredicate, selectMenuChannelPredicate, selectMenuMentionablePredicate, selectMenuRolePredicate, selectMenuStringOptionPredicate, selectMenuStringPredicate, selectMenuUserPredicate, separatorPredicate, snowflakePredicate, stringOptionPredicate, textDisplayPredicate, textInputPredicate, thumbnailPredicate, userCommandPredicate, userOptionPredicate, version };
5564
+ export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type AnyModalComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContainerBuilder, type ContainerBuilderData, type ContainerComponentBuilders, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, FileUploadBuilder, LabelBuilder, type LabelBuilderData, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type MessageTopLevelComponentBuilder, type ModalActionRowComponentBuilder, ModalBuilder, type ModalBuilderData, type ModalComponentBuilder, PollAnswerBuilder, type PollAnswerData, PollAnswerMediaBuilder, PollBuilder, type PollData, PollMediaBuilder, PollQuestionBuilder, PremiumButtonBuilder, PrimaryButtonBuilder, type RestOrArray, RoleSelectMenuBuilder, SecondaryButtonBuilder, SectionBuilder, type SectionBuilderAccessory, type SectionBuilderData, SeparatorBuilder, SharedChatInputCommandOptions, type SharedChatInputCommandOptionsData, SharedChatInputCommandSubcommands, type SharedChatInputCommandSubcommandsData, SharedClientThemeBuilder, SharedName, SharedNameAndDescription, type SharedNameAndDescriptionData, type SharedNameData, StringSelectMenuBuilder, type StringSelectMenuData, StringSelectMenuOptionBuilder, SuccessButtonBuilder, TextDisplayBuilder, TextInputBuilder, ThumbnailBuilder, UserContextCommandBuilder, UserSelectMenuBuilder, ValidationError, actionRowPredicate, allowedMentionPredicate, attachmentOptionPredicate, attachmentPredicate, baseBasicOptionPredicate, booleanOptionPredicate, buttonPredicate, channelOptionPredicate, chatInputCommandPredicate, chatInputCommandSubcommandGroupPredicate, chatInputCommandSubcommandPredicate, containerPredicate, createComponentBuilder, customIdPredicate, disableValidators, embedAuthorPredicate, embedFieldPredicate, embedFooterPredicate, embedPredicate, emojiPredicate, enableValidators, fileBodyMessagePredicate, filePredicate, fileUploadPredicate, idPredicate, integerOptionPredicate, isValidationEnabled, labelPredicate, localeMapPredicate, mediaGalleryItemPredicate, mediaGalleryPredicate, memberPermissionsPredicate, mentionableOptionPredicate, messageCommandPredicate, messagePredicate, messageReferencePredicate, modalPredicate, normalizeArray, numberOptionPredicate, pollAnswerMediaPredicate, pollAnswerPredicate, pollPredicate, pollQuestionPredicate, rawFilePredicate, resolveAccessoryComponent, resolveBuilder, roleOptionPredicate, sectionPredicate, selectMenuChannelPredicate, selectMenuMentionablePredicate, selectMenuRolePredicate, selectMenuStringOptionPredicate, selectMenuStringPredicate, selectMenuUserPredicate, separatorPredicate, sharedClientThemePredicate, snowflakePredicate, stringOptionPredicate, textDisplayPredicate, textInputPredicate, thumbnailPredicate, userCommandPredicate, userOptionPredicate, version };