Constructs a new MediaGalleryItem.
Optional initial data for the media gallery item.
Optional initial data for the media gallery item.
Sets the description for this gallery item.
The description text.
The updated MediaGalleryItem instance.
Sets the media URL for this gallery item.
The URL of the media.
The updated MediaGalleryItem instance.
Sets whether this gallery item should be visually marked as a spoiler.
Whether the item is a spoiler (defaults to true).
The updated MediaGalleryItem instance.
Converts this MediaGalleryItem instance to its JSON representation.
The JSON representation of the item data.
Optional
description?: stringAlt text for the media
Optional
media?: APIUnfurledMediaItemA url or attachment
Optional
spoiler?: booleanWhether the thumbnail should be a spoiler (or blurred out). Defaults to false
Represents an item within a MediaGallery.