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

Represents an action row component

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 the components in this action row

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

Serializes this component to an API-compatible JSON object