dressed
Version:
A sleek, serverless-ready Discord bot framework.
17 lines (16 loc) • 762 B
TypeScript
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
*
* **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;