class MediaGalleryItemBuilder
implements
JSONEncodable<APIMediaGalleryItem>declare class MediaGalleryItemBuilder implements JSONEncodable<APIMediaGalleryItem>
Constructors
data?: Partial<APIMediaGalleryItem>)
constructor(data?: Partial<APIMediaGalleryItem>
Creates a new media gallery item from API data.
setDescriptiondescription: string) : this (
description: string
Sets the description of this thumbnail.
setSpoilerspoiler?: boolean) : this (
spoiler?: boolean
Sets the spoiler status of this thumbnail.
setURLurl: string) : this (
url: string
Sets the source URL of this media gallery item.
toJSONvalidationOverride?: boolean) : APIMediaGalleryItem (
validationOverride?: boolean
Transforms this object to its JSON format