class MediaGalleryItemBuilder
implements
JSONEncodable<APIMediaGalleryItem>declare class MediaGalleryItemBuilder implements JSONEncodable<APIMediaGalleryItem>Constructors
constructor(data?: Partial<APIMediaGalleryItem>)
data?: Partial<APIMediaGalleryItem>
Creates a new media gallery item from API data.
readonlydata : Partial<APIMediaGalleryItem>
The API data associated with this media gallery item.
setDescription(description: string) : this
description: string
Sets the description of this media gallery item.
setSpoiler(spoiler?: boolean) : this
spoiler?: boolean
Sets the spoiler status of this media gallery item.
setURL(url: string) : this
url: string
Sets the media URL of this media gallery item.
toJSON() : APIMediaGalleryItem
Serializes this builder to API-compatible JSON data.