No summary provided.
Creates a new text display from API data.
Example
Creating a text display from an API data object:Example
Creating a text display using setters and API data:Name | Type | Optional | Description |
---|---|---|---|
data | Partial<APITextDisplayComponent> | Yes | The API data to create this text display with |
Readonly
The API data associated with this component.
Inherited from ComponentBuilderClears the id of this component, defaulting to a default incremented id.
Inherited from ComponentBuilderSets the text of this text display.
Name | Type | Optional | Description |
---|---|---|---|
content | string | No | The text to use |
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.