Search...

ActionRowBuilder

declare class ActionRowBuilder<T extends AnyComponentBuilder> extends ComponentBuilder<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>> 
declare class ActionRowBuilder<T extends AnyComponentBuilder> extends ComponentBuilder<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>> 
Represents an action row component

Extends

ComponentBuilder<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent
NameConstraintsOptionalDefaultDescription
TAnyComponentBuilderNoNone

constructor({ components, ...data }?)

Constructs a new instance of the ActionRowBuilder class
NameTypeOptionalDescription
{ components, ...data }Partial<APIActionRowComponent<APIActionRowComponentTypes>>YesNone
Readonly

components

:

T[]

The components within this action row

addComponents(components)

:

this

Adds components to this action row.
NameTypeOptionalDescription
componentsRestOrArray<T>NoThe components to add to this action row.

setComponents(components)

:

this

Sets the components in this action row
NameTypeOptionalDescription
componentsRestOrArray<T>NoThe components to set this row to

toJSON()

:

APIActionRowComponent<ReturnType<T['toJSON']>>