No summary provided.
Creates a new thumbnail from API data.
Example
Creating a thumbnail from an API data object:Example
Creating a thumbnail using setters and API data:Name | Type | Optional | Description |
---|---|---|---|
data | Partial<APIThumbnailComponent> | Yes | The API data to create this thumbnail with |
The API data associated with this component.
Inherited from ComponentBuilderClears the description of this thumbnail.
Clears the id of this component, defaulting to a default incremented id.
Inherited from ComponentBuilderSets the description of this thumbnail.
Name | Type | Optional | Description |
---|---|---|---|
description | string | No | The description to use |
Sets the id (not the custom id) for this component.
Name | Type | Optional | Description |
---|---|---|---|
id | number | No | The id for this component |
Sets the spoiler status of this thumbnail.
Name | Type | Optional | Description |
---|---|---|---|
spoiler | boolean | Yes | The spoiler status to use |
Sets the media URL of this thumbnail.
Name | Type | Optional | Description |
---|---|---|---|
url | string | No | The URL to use |
Serializes this builder to API-compatible JSON data.