export declare class ActionRowBuilder<T extends AnyComponentBuilder> extends ComponentBuilder<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>>
Represents an action row component
Constructors
{ components, ...data }?: Partial<APIActionRowComponent<APIActionRowComponentTypes>>)
constructor({ components, ...data }?: Partial<APIActionRowComponent<APIActionRowComponentTypes>>
Constructs a new instance of the ActionRowBuilder
class
Type Parameters
AnyComponentBuilder T extends
The types of components this action row holds
readonlyPartial<DataType> data :
The API data associated with this component
Inherited from: ComponentBuilder
addComponentscomponents: RestOrArray<T>) : this (
components: RestOrArray<T>
Adds components to this action row.
setComponentscomponents: RestOrArray<T>) : this (
components: RestOrArray<T>
Sets the components in this action row
toJSONAPIActionRowComponent<ReturnType<T['toJSON']>> () :
Serializes this component to an API-compatible JSON object