UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

28 lines 797 B
import { ComponentType } from "discord-api-types/v10"; import { Thumbnail } from "./thumbnail.js"; export function MediaGallery(...args) { if (Array.isArray(args[0]) && args.length === 2) { const [items, config] = args; return { ...config, items, type: ComponentType.MediaGallery, }; } else { const items = args; return { items, type: ComponentType.MediaGallery, }; } } /** * Creates a media item to be used in a media gallery */ export function MediaGalleryItem(...config) { // biome-ignore lint/correctness/noUnusedVariables: Type and ID are unused const { type, id, ...item } = Thumbnail(...config); return item; } //# sourceMappingURL=media-gallery.js.map