export declare class ActionRowBuilder<T extends AnyComponentBuilder> extends ComponentBuilder<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>>

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

Constructors

Creates a new action row from API data.

Type Parameters

T extends AnyComponentBuilder

The types of components this action row holds

readonly
components : T[]

The components within this action row.

readonly
data : Partial<DataType>

The API data associated with this component.

Inherited from: ComponentBuilder

addComponents(
components: RestOrArray<T>
) : this

Adds components to this action row.

setComponents(
components: RestOrArray<T>
) : this

Sets components for this action row.

toJSON() : APIActionRowComponent<ReturnType<T['toJSON']>>

Serializes this builder to API-compatible JSON data.