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| Name | Constraints | Optional | Default | Description |
|---|---|---|---|---|
| T | AnyComponentBuilder | No | None |
constructor({ components, ...data }?)
Constructs a new instance of the
ActionRowBuilder class| Name | Type | Optional | Description |
|---|---|---|---|
| { components, ...data } | Partial<APIActionRowComponent<APIActionRowComponentTypes>> | Yes | None |
Readonly
components
:
T[]
The components within this action row
addComponents(components)
:
this
Adds components to this action row.
| Name | Type | Optional | Description |
|---|---|---|---|
| components | RestOrArray<T> | No | The components to add to this action row. |
setComponents(components)
:
this
Sets the components in this action row
| Name | Type | Optional | Description |
|---|---|---|---|
| components | RestOrArray<T> | No | The components to set this row to |