seyfert
    Preparing search index...

    Class MediaGalleryItem

    Represents an item within a MediaGallery.

    Index

    Constructors

    Properties

    data: Partial<APIMediaGalleryItems> = {}

    Optional initial data for the media gallery item.

    Methods

    • Converts this MediaGalleryItem instance to its JSON representation.

      Returns { description?: string; media?: APIUnfurledMediaItem; spoiler?: boolean }

      The JSON representation of the item data.

      • Optionaldescription?: string

        Alt text for the media

      • Optionalmedia?: APIUnfurledMediaItem

        A url or attachment

      • Optionalspoiler?: boolean

        Whether the thumbnail should be a spoiler (or blurred out). Defaults to false