UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

19 lines (18 loc) 809 B
import { type APIMediaGalleryComponent, type APIMediaGalleryItem } from "discord-api-types/v10"; import { Thumbnail } from "./thumbnail.ts"; /** * Creates a media gallery component * * Display images and other media * * @param items 1 to 10 media gallery items * * **IMPORTANT**: * In order to use this component, you must add the `MessageFlags.IsComponentsV2` flag to your message */ export declare function MediaGallery(items: APIMediaGalleryItem[], config: Omit<APIMediaGalleryComponent, "items" | "type">): APIMediaGalleryComponent; export declare function MediaGallery(...items: APIMediaGalleryItem[]): APIMediaGalleryComponent; /** * Creates a media item to be used in a media gallery */ export declare function MediaGalleryItem(...config: Parameters<typeof Thumbnail>): APIMediaGalleryItem;