export declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<APIActionRowComponentTypes>>

A builder that creates API-compatible JSON data for action rows.

Constructors

Creates a new action row from API data.

readonly
components : readonly AnyActionRowComponentBuilder[]

The components within this action row.

addChannelSelectMenuComponent() : this

Adds a channel select menu component to this action row.

addComponents() : this

Generically add any type of component to this action row, only takes in an instance of a component builder.

addDangerButtonComponents() : this

Adds danger button components to this action row.

addLinkButtonComponents() : this

Adds URL button components to this action row.

Adds a mentionable select menu component to this action row.

addPremiumButtonComponents() : this

Adds SKU id button components to this action row.

addPrimaryButtonComponents() : this

Adds primary button components to this action row.

addRoleSelectMenuComponent() : this

Adds a role select menu component to this action row.

addSecondaryButtonComponents() : this

Adds secondary button components to this action row.

addStringSelectMenuComponent() : this

Adds a string select menu component to this action row.

addSuccessButtonComponents() : this

Adds success button components to this action row.

addTextInputComponent() : this

Adds a text input component to this action row.

addUserSelectMenuComponent() : this

Adds a user select menu component to this action row.

spliceComponents(
index: number
deleteCount: number
) : this

Removes, replaces, or inserts components for this action row.

Examples:Remove the first component:
actionRow.spliceComponents(0, 1);
Remove the first n components:
const n = 4;
actionRow.spliceComponents(0, n);
Remove the last component:
actionRow.spliceComponents(-1, 1);

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.