A builder that creates API-compatible JSON data for action rows.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
ComponentType | AnyComponentBuilder | No | The types of components this action row holds |
Creates a new action row from API data.
Example
Creating an action row from an API data object:Example
Creating an action row using setters and API data:Name | Type | Optional | Description |
---|---|---|---|
data | Partial<APIActionRowComponent<APIComponentInActionRow>> | Yes | The API data to create this action row with |
The API data associated with this component.
Inherited from ComponentBuilderAdds components to this action row.
Name | Type | Optional | Description |
---|---|---|---|
...components | RestOrArray<ComponentType> | No | The components to add |
Clears the id of this component, defaulting to a default incremented id.
Inherited from ComponentBuilderSets components for this action row.
Name | Type | Optional | Description |
---|---|---|---|
...components | RestOrArray<ComponentType> | No | The components to set |
Sets the id (not the custom id) for this component.
Name | Type | Optional | Description |
---|---|---|---|
id | number | No | The id for this component |
Serializes this builder to API-compatible JSON data.