Preview environment

class MediaGalleryItemBuilder

external
declare class MediaGalleryItemBuilder implements JSONEncodable<APIMediaGalleryItem>

Constructors

constructor()

Creates a new media gallery item from API data.

readonlyexternal
data : Partial<APIMediaGalleryItem>

The API data associated with this media gallery item.

external
clearDescription() : this

Clears the description of this media gallery item.

external
setDescription(
description: string
) : this

Sets the description of this media gallery item.

external
setSpoiler(
spoiler?: boolean
) : this

Sets the spoiler status of this media gallery item.

external
setURL(
url: string
) : this

Sets the media URL of this media gallery item.

external
toJSON() : APIMediaGalleryItem

Serializes this builder to API-compatible JSON data.