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 thumbnail.
Sets the description of this thumbnail.
Name | Type | Optional | Description |
---|---|---|---|
description | string | No | The description to use |
Sets the spoiler status of this thumbnail.
Name | Type | Optional | Description |
---|---|---|---|
spoiler | boolean | Yes | The spoiler status to use |
Sets the source URL of this media gallery item.
Name | Type | Optional | Description |
---|---|---|---|
url | string | No | The URL to use |
Transforms this object to its JSON format
Name | Type | Optional | Description |
---|---|---|---|
validationOverride | boolean | Yes | None |