export declare class ActionRowBuilder<ComponentType extends AnyComponentBuilder> extends ComponentBuilder<APIActionRowComponent<APIComponentInMessageActionRow | APIComponentInModalActionRow>>A builder that creates API-compatible JSON data for action rows.
Type Parameters
ComponentType extends AnyComponentBuilder
The types of components this action row holds
readonlycomponents : ComponentType[]
The components within this action row.
readonlydata : Partial<APIActionRowComponent>
The API data associated with this component.
Inherited from: ComponentBuilder
addComponents(...components: RestOrArray<ComponentType>) : this
...components: RestOrArray<ComponentType>
Adds components to this action row.
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setComponents(...components: RestOrArray<ComponentType>) : this
...components: RestOrArray<ComponentType>
Sets components for this action row.
setId(id: number) : this
id: number
Sets the id (not the custom id) for this component.
Inherited from: ComponentBuilder
toJSON() : APIActionRowComponent<ReturnType<ComponentType['toJSON']>>
Serializes this builder to API-compatible JSON data.