Skip to content

MediaGalleryItem ​

classe · Source

Constructor ​

new MediaGalleryItem(data?: MediaGalleryItem | APIMediaGalleryItem)

Parameters

NameTypeDescription
data?MediaGalleryItem | APIMediaGalleryItemThe data Default: {}.

Properties ​

media ​

media: UnfurledMediaItem

A url or attachment Source

description ​

description: String

Alt text for the media, max 1024 characters Source

spoiler ​

spoiler: Boolean

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

Methods ​

toJSON ​

toJSON(): APIMediaGalleryItem
**Returns:** `APIMediaGalleryItem` [Source](https://github.com/AltKit/discord/blob/selfbotjs/src/structures/MediaGalleryItem.js#L38)

Unofficial software. Not affiliated with or supported by Discord.