@discordjs/builders 2.0.0-dev.1745194448-8f35dfd03 → 2.0.0-dev.1745367189-42ce11622

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, APIActionRowComponent, APIActionRowComponentTypes, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIModalActionRowComponent, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, APIMessageReference, RESTPostAPIChannelMessageJSONBody, APIMessageActionRowComponent, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
2
+ import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIActionRowComponent, APIComponentInActionRow, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIComponentInModalActionRow, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, APIMessageReference, RESTPostAPIChannelMessageJSONBody, APIComponentInMessageActionRow, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
3
3
  import { JSONEncodable } from '@discordjs/util';
4
4
  import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
5
5
  import * as zod from 'zod';
@@ -34,7 +34,7 @@ declare class EmojiOrLabelButtonMixin {
34
34
  /**
35
35
  * Any action row component data represented as an object.
36
36
  */
37
- type AnyAPIActionRowComponent = APIActionRowComponent<APIActionRowComponentTypes> | APIActionRowComponentTypes;
37
+ type AnyAPIActionRowComponent = APIActionRowComponent<APIComponentInActionRow> | APIComponentInActionRow;
38
38
  /**
39
39
  * The base component builder that contains common symbols for all sorts of components.
40
40
  *
@@ -782,7 +782,7 @@ declare function createComponentBuilder<ComponentType extends keyof MappedCompon
782
782
  */
783
783
  declare function createComponentBuilder<ComponentBuilder extends MessageComponentBuilder | ModalComponentBuilder>(data: ComponentBuilder): ComponentBuilder;
784
784
 
785
- interface ActionRowBuilderData extends Partial<Omit<APIActionRowComponent<APIActionRowComponentTypes>, 'components'>> {
785
+ interface ActionRowBuilderData extends Partial<Omit<APIActionRowComponent<APIComponentInActionRow>, 'components'>> {
786
786
  components: AnyActionRowComponentBuilder[];
787
787
  }
788
788
  /**
@@ -790,7 +790,7 @@ interface ActionRowBuilderData extends Partial<Omit<APIActionRowComponent<APIAct
790
790
  *
791
791
  * @typeParam ComponentType - The types of components this action row holds
792
792
  */
793
- declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<APIActionRowComponentTypes>> {
793
+ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<APIComponentInActionRow>> {
794
794
  private readonly data;
795
795
  /**
796
796
  * The components within this action row.
@@ -830,7 +830,7 @@ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<AP
830
830
  * .addComponents(button2, button3);
831
831
  * ```
832
832
  */
833
- constructor({ components, ...data }?: Partial<APIActionRowComponent<APIActionRowComponentTypes>>);
833
+ constructor({ components, ...data }?: Partial<APIActionRowComponent<APIComponentInActionRow>>);
834
834
  /**
835
835
  * Adds primary button components to this action row.
836
836
  *
@@ -937,7 +937,7 @@ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<AP
937
937
  /**
938
938
  * {@inheritDoc ComponentBuilder.toJSON}
939
939
  */
940
- toJSON(validationOverride?: boolean): APIActionRowComponent<APIActionRowComponentTypes>;
940
+ toJSON(validationOverride?: boolean): APIActionRowComponent<APIComponentInActionRow>;
941
941
  }
942
942
 
943
943
  declare const emojiPredicate: z.ZodEffects<z.ZodObject<{
@@ -7536,13 +7536,13 @@ declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseC
7536
7536
  *
7537
7537
  * @param components - The components to add
7538
7538
  */
7539
- addActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIModalActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7539
+ addActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInModalActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7540
7540
  /**
7541
7541
  * Sets the action rows for this modal.
7542
7542
  *
7543
7543
  * @param components - The components to set
7544
7544
  */
7545
- setActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIModalActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7545
+ setActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInModalActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7546
7546
  /**
7547
7547
  * Removes, replaces, or inserts action rows for this modal.
7548
7548
  *
@@ -7572,7 +7572,7 @@ declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseC
7572
7572
  * @param deleteCount - The number of action rows to remove
7573
7573
  * @param rows - The replacing action row objects
7574
7574
  */
7575
- spliceActionRows(index: number, deleteCount: number, ...rows: (ActionRowBuilder | APIActionRowComponent<APIModalActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder))[]): this;
7575
+ spliceActionRows(index: number, deleteCount: number, ...rows: (ActionRowBuilder | APIActionRowComponent<APIComponentInModalActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder))[]): this;
7576
7576
  /**
7577
7577
  * Serializes this builder to API-compatible JSON data.
7578
7578
  *
@@ -9777,7 +9777,7 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
9777
9777
  *
9778
9778
  * @param components - The components to add
9779
9779
  */
9780
- addComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIMessageActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9780
+ addComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInMessageActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9781
9781
  /**
9782
9782
  * Removes, replaces, or inserts components for this message.
9783
9783
  *
@@ -9806,13 +9806,13 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
9806
9806
  * @param deleteCount - The amount of components to remove
9807
9807
  * @param components - The components to insert
9808
9808
  */
9809
- spliceComponents(start: number, deleteCount: number, ...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIMessageActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9809
+ spliceComponents(start: number, deleteCount: number, ...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInMessageActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9810
9810
  /**
9811
9811
  * Sets the components of this message.
9812
9812
  *
9813
9813
  * @param components - The components to set
9814
9814
  */
9815
- setComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIMessageActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9815
+ setComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInMessageActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9816
9816
  /**
9817
9817
  * Sets the sticker ids of this message.
9818
9818
  *
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 { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIActionRowComponent, APIActionRowComponentTypes, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIModalActionRowComponent, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, APIMessageReference, RESTPostAPIChannelMessageJSONBody, APIMessageActionRowComponent, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
2
+ import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIActionRowComponent, APIComponentInActionRow, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, ComponentType, APIModalComponent, APIMessageComponent, ButtonStyle, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIComponentInModalActionRow, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, APIMessageReference, RESTPostAPIChannelMessageJSONBody, APIComponentInMessageActionRow, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
3
3
  import { JSONEncodable } from '@discordjs/util';
4
4
  import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
5
5
  import * as zod from 'zod';
@@ -34,7 +34,7 @@ declare class EmojiOrLabelButtonMixin {
34
34
  /**
35
35
  * Any action row component data represented as an object.
36
36
  */
37
- type AnyAPIActionRowComponent = APIActionRowComponent<APIActionRowComponentTypes> | APIActionRowComponentTypes;
37
+ type AnyAPIActionRowComponent = APIActionRowComponent<APIComponentInActionRow> | APIComponentInActionRow;
38
38
  /**
39
39
  * The base component builder that contains common symbols for all sorts of components.
40
40
  *
@@ -782,7 +782,7 @@ declare function createComponentBuilder<ComponentType extends keyof MappedCompon
782
782
  */
783
783
  declare function createComponentBuilder<ComponentBuilder extends MessageComponentBuilder | ModalComponentBuilder>(data: ComponentBuilder): ComponentBuilder;
784
784
 
785
- interface ActionRowBuilderData extends Partial<Omit<APIActionRowComponent<APIActionRowComponentTypes>, 'components'>> {
785
+ interface ActionRowBuilderData extends Partial<Omit<APIActionRowComponent<APIComponentInActionRow>, 'components'>> {
786
786
  components: AnyActionRowComponentBuilder[];
787
787
  }
788
788
  /**
@@ -790,7 +790,7 @@ interface ActionRowBuilderData extends Partial<Omit<APIActionRowComponent<APIAct
790
790
  *
791
791
  * @typeParam ComponentType - The types of components this action row holds
792
792
  */
793
- declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<APIActionRowComponentTypes>> {
793
+ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<APIComponentInActionRow>> {
794
794
  private readonly data;
795
795
  /**
796
796
  * The components within this action row.
@@ -830,7 +830,7 @@ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<AP
830
830
  * .addComponents(button2, button3);
831
831
  * ```
832
832
  */
833
- constructor({ components, ...data }?: Partial<APIActionRowComponent<APIActionRowComponentTypes>>);
833
+ constructor({ components, ...data }?: Partial<APIActionRowComponent<APIComponentInActionRow>>);
834
834
  /**
835
835
  * Adds primary button components to this action row.
836
836
  *
@@ -937,7 +937,7 @@ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<AP
937
937
  /**
938
938
  * {@inheritDoc ComponentBuilder.toJSON}
939
939
  */
940
- toJSON(validationOverride?: boolean): APIActionRowComponent<APIActionRowComponentTypes>;
940
+ toJSON(validationOverride?: boolean): APIActionRowComponent<APIComponentInActionRow>;
941
941
  }
942
942
 
943
943
  declare const emojiPredicate: z.ZodEffects<z.ZodObject<{
@@ -7536,13 +7536,13 @@ declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseC
7536
7536
  *
7537
7537
  * @param components - The components to add
7538
7538
  */
7539
- addActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIModalActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7539
+ addActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInModalActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7540
7540
  /**
7541
7541
  * Sets the action rows for this modal.
7542
7542
  *
7543
7543
  * @param components - The components to set
7544
7544
  */
7545
- setActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIModalActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7545
+ setActionRows(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInModalActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
7546
7546
  /**
7547
7547
  * Removes, replaces, or inserts action rows for this modal.
7548
7548
  *
@@ -7572,7 +7572,7 @@ declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseC
7572
7572
  * @param deleteCount - The number of action rows to remove
7573
7573
  * @param rows - The replacing action row objects
7574
7574
  */
7575
- spliceActionRows(index: number, deleteCount: number, ...rows: (ActionRowBuilder | APIActionRowComponent<APIModalActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder))[]): this;
7575
+ spliceActionRows(index: number, deleteCount: number, ...rows: (ActionRowBuilder | APIActionRowComponent<APIComponentInModalActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder))[]): this;
7576
7576
  /**
7577
7577
  * Serializes this builder to API-compatible JSON data.
7578
7578
  *
@@ -9777,7 +9777,7 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
9777
9777
  *
9778
9778
  * @param components - The components to add
9779
9779
  */
9780
- addComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIMessageActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9780
+ addComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInMessageActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9781
9781
  /**
9782
9782
  * Removes, replaces, or inserts components for this message.
9783
9783
  *
@@ -9806,13 +9806,13 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
9806
9806
  * @param deleteCount - The amount of components to remove
9807
9807
  * @param components - The components to insert
9808
9808
  */
9809
- spliceComponents(start: number, deleteCount: number, ...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIMessageActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9809
+ spliceComponents(start: number, deleteCount: number, ...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInMessageActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9810
9810
  /**
9811
9811
  * Sets the components of this message.
9812
9812
  *
9813
9813
  * @param components - The components to set
9814
9814
  */
9815
- setComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIMessageActionRowComponent> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9815
+ setComponents(...components: RestOrArray<ActionRowBuilder | APIActionRowComponent<APIComponentInMessageActionRow> | ((builder: ActionRowBuilder) => ActionRowBuilder)>): this;
9816
9816
  /**
9817
9817
  * Sets the sticker ids of this message.
9818
9818
  *
package/dist/index.js CHANGED
@@ -1290,6 +1290,28 @@ function createComponentBuilder(data) {
1290
1290
  return new MentionableSelectMenuBuilder(data);
1291
1291
  case import_v1013.ComponentType.ChannelSelect:
1292
1292
  return new ChannelSelectMenuBuilder(data);
1293
+ // Will be handled later
1294
+ case import_v1013.ComponentType.Section: {
1295
+ throw new Error("Not implemented yet: ComponentType.Section case");
1296
+ }
1297
+ case import_v1013.ComponentType.TextDisplay: {
1298
+ throw new Error("Not implemented yet: ComponentType.TextDisplay case");
1299
+ }
1300
+ case import_v1013.ComponentType.Thumbnail: {
1301
+ throw new Error("Not implemented yet: ComponentType.Thumbnail case");
1302
+ }
1303
+ case import_v1013.ComponentType.MediaGallery: {
1304
+ throw new Error("Not implemented yet: ComponentType.MediaGallery case");
1305
+ }
1306
+ case import_v1013.ComponentType.File: {
1307
+ throw new Error("Not implemented yet: ComponentType.File case");
1308
+ }
1309
+ case import_v1013.ComponentType.Separator: {
1310
+ throw new Error("Not implemented yet: ComponentType.Separator case");
1311
+ }
1312
+ case import_v1013.ComponentType.Container: {
1313
+ throw new Error("Not implemented yet: ComponentType.Container case");
1314
+ }
1293
1315
  default:
1294
1316
  throw new Error(`Cannot properly serialize component type: ${data.type}`);
1295
1317
  }
@@ -3867,7 +3889,9 @@ var MessageBuilder = class {
3867
3889
  attachments: data.attachments?.map((attachment) => new AttachmentBuilder(attachment)) ?? [],
3868
3890
  embeds: data.embeds?.map((embed) => new EmbedBuilder(embed)) ?? [],
3869
3891
  poll: data.poll ? new PollBuilder(data.poll) : void 0,
3870
- components: data.components?.map((component) => new ActionRowBuilder(component)) ?? [],
3892
+ components: data.components?.map(
3893
+ (component) => new ActionRowBuilder(component)
3894
+ ) ?? [],
3871
3895
  message_reference: data.message_reference ? new MessageReferenceBuilder(data.message_reference) : void 0
3872
3896
  };
3873
3897
  }
@@ -4254,7 +4278,7 @@ var MessageBuilder = class {
4254
4278
  };
4255
4279
 
4256
4280
  // src/index.ts
4257
- var version = "2.0.0-dev.1745194448-8f35dfd03";
4281
+ var version = "2.0.0-dev.1745367189-42ce11622";
4258
4282
  // Annotate the CommonJS export names for ESM import in node:
4259
4283
  0 && (module.exports = {
4260
4284
  ActionRowBuilder,