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

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


Creates a new action row from API data.

Type Parameters

ComponentType extends AnyComponentBuilder

The types of components this action row holds

components : ComponentType[]

The components within this action row.

The API data associated with this component.

Inherited from: ComponentBuilder

...components: RestOrArray<ComponentType>
) : this

Adds components to this action row.

...components: RestOrArray<ComponentType>
) : this

Sets components for this action row.

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

Serializes this builder to API-compatible JSON data.