MediaGalleryItem
classe · Source
Constructor
new MediaGalleryItem(data?: MediaGalleryItem | APIMediaGalleryItem)
Parameters
| Name | Type | Description |
|---|---|---|
data? | MediaGalleryItem | APIMediaGalleryItem | The 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)