Preview environment

class MediaGalleryItem

export class MediaGalleryItem

Represents an item in a media gallery

readonly
data : APIMediaGalleryItem

The API data associated with this component

readonly
description : string | null

The description of this media gallery item

readonly
media : UnfurledMediaItem

The media associated with this media gallery item

readonly
spoiler : boolean

Whether this media gallery item is spoilered

Returns the API-compatible JSON for this component