Skip to content

MediaGalleryComponent ​

classe · Source

Constructor ​

new MediaGalleryComponent(data?: MediaGalleryComponent | APIMediaGalleryComponent)

Parameters

NameTypeDescription
data?MediaGalleryComponent | APIMediaGalleryComponentThe data Default: {}.

Properties ​

items ​

items: Array<MediaGalleryItem>

1 to 10 media gallery items Source

Methods ​

toJSON ​

toJSON(): APIMediaGalleryComponent
**Returns:** `APIMediaGalleryComponent` [Source](https://github.com/AltKit/discord/blob/selfbotjs/src/structures/MediaGalleryComponent.js#L33)

Unofficial software. Not affiliated with or supported by Discord.