CoreClasses
Row
Type Parameters
Type Parameter | Default type |
---|---|
T extends BaseComponent | BaseComponent |
Constructors
new Row()
new Row<
T
>(components
?):Row
<T
>
Parameters
Parameter | Type |
---|---|
components ? | T [] |
Returns
Row
<T
>
Properties
Property | Type | Default value | Description |
---|---|---|---|
components | T [] | [] | The components in the action row |
Methods
addComponent()
addComponent(
component
):void
Add a component to the action row
Parameters
Parameter | Type | Description |
---|---|---|
component | T | The component to add |
Returns
void
removeAllComponents()
removeAllComponents():
void
Remove all components from the action row
Returns
void
removeComponent()
removeComponent(
component
):void
Remove a component from the action row
Parameters
Parameter | Type | Description |
---|---|---|
component | T | The component to remove |
Returns
void
serialize()
serialize():
APIActionRowComponent
<APIActionRowComponentTypes
>
Returns
APIActionRowComponent
<APIActionRowComponentTypes
>