No summary provided.
Implements
JSONEncodable<APIMediaGalleryItem>Creates a new media gallery item from API data.
Example
Creating a media gallery item from an API data object:Example
Creating a media gallery item using setters and API data:| Name | Type | Optional | Description |
|---|---|---|---|
| data | Partial<APIMediaGalleryItem> | Yes | The API data to create this media gallery item with |
Clears the description of this media gallery item.
Sets the description of this media gallery item.
| Name | Type | Optional | Description |
|---|---|---|---|
| description | string | No | The description to use |
Sets the spoiler status of this media gallery item.
| Name | Type | Optional | Description |
|---|---|---|---|
| spoiler | boolean | Yes | The spoiler status to use |
Sets the media URL of this media gallery item.
| Name | Type | Optional | Description |
|---|---|---|---|
| url | string | No | The URL to use |
Serializes this builder to API-compatible JSON data.