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