class MediaGalleryItemBuilder

declare class MediaGalleryItemBuilder implements JSONEncodable<APIMediaGalleryItem>

Constructors

constructor()

Creates a new media gallery item from API data.

clearDescription() : this

Clears the description of this thumbnail.

setDescription(
description: string
) : this

Sets the description of this thumbnail.

setSpoiler(
spoiler?: boolean
) : this

Sets the spoiler status of this thumbnail.

setURL(
url: string
) : this

Sets the source URL of this media gallery item.

toJSON(
validationOverride?: boolean
) : APIMediaGalleryItem

Transforms this object to its JSON format