export declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<APIActionRowComponentTypes>>
A builder that creates API-compatible JSON data for action rows.
readonlyreadonly AnyActionRowComponentBuilder[] components :
The components within this action row.
addChannelSelectMenuComponentinput: APIChannelSelectComponent | ChannelSelectMenuBuilder | ((builder: ChannelSelectMenuBuilder) => ChannelSelectMenuBuilder)) : this (
Adds a channel select menu component to this action row.
addComponents...input: RestOrArray<AnyActionRowComponentBuilder>) : this (
Generically add any type of component to this action row, only takes in an instance of a component builder.
addDangerButtonComponents...input: RestOrArray<APIButtonComponentWithCustomId | DangerButtonBuilder | ((builder: DangerButtonBuilder) => DangerButtonBuilder)>) : this (
Adds danger button components to this action row.
addLinkButtonComponents...input: RestOrArray<APIButtonComponentWithURL | LinkButtonBuilder | ((builder: LinkButtonBuilder) => LinkButtonBuilder)>) : this (
Adds URL button components to this action row.
addMentionableSelectMenuComponentinput: APIMentionableSelectComponent | MentionableSelectMenuBuilder | ((builder: MentionableSelectMenuBuilder) => MentionableSelectMenuBuilder)) : this (
Adds a mentionable select menu component to this action row.
addPremiumButtonComponents...input: RestOrArray<APIButtonComponentWithSKUId | PremiumButtonBuilder | ((builder: PremiumButtonBuilder) => PremiumButtonBuilder)>) : this (
Adds SKU id button components to this action row.
addPrimaryButtonComponents...input: RestOrArray<APIButtonComponentWithCustomId | PrimaryButtonBuilder | ((builder: PrimaryButtonBuilder) => PrimaryButtonBuilder)>) : this (
Adds primary button components to this action row.
addRoleSelectMenuComponentinput: APIRoleSelectComponent | RoleSelectMenuBuilder | ((builder: RoleSelectMenuBuilder) => RoleSelectMenuBuilder)) : this (
Adds a role select menu component to this action row.
addSecondaryButtonComponents...input: RestOrArray<APIButtonComponentWithCustomId | SecondaryButtonBuilder | ((builder: SecondaryButtonBuilder) => SecondaryButtonBuilder)>) : this (
Adds secondary button components to this action row.
addStringSelectMenuComponentinput: APIStringSelectComponent | StringSelectMenuBuilder | ((builder: StringSelectMenuBuilder) => StringSelectMenuBuilder)) : this (
Adds a string select menu component to this action row.
addSuccessButtonComponents...input: RestOrArray<APIButtonComponentWithCustomId | SuccessButtonBuilder | ((builder: SuccessButtonBuilder) => SuccessButtonBuilder)>) : this (
Adds success button components to this action row.
addTextInputComponentinput: APITextInputComponent | TextInputBuilder | ((builder: TextInputBuilder) => TextInputBuilder)) : this (
Adds a text input component to this action row.
addUserSelectMenuComponentinput: APIUserSelectComponent | UserSelectMenuBuilder | ((builder: UserSelectMenuBuilder) => UserSelectMenuBuilder)) : this (
Adds a user select menu component to this action row.
Removes, replaces, or inserts components for this action row.
actionRow.spliceComponents(0, 1);
const n = 4;
actionRow.spliceComponents(0, n);
actionRow.spliceComponents(-1, 1);
toJSONvalidationOverride?: boolean) : APIActionRowComponent<APIActionRowComponentTypes> (
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.