UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

19 lines 537 B
import { ComponentType } from "discord-api-types/v10"; /** * Creates a thumbnail component * * Small image that can be used as an accessory * * @param media A url or attachment * * **IMPORTANT**: * In order to use this component, you must add the `MessageFlags.IsComponentsV2` flag to your message */ export function Thumbnail(media, config) { return { ...config, media: typeof media === "string" ? { url: media } : media, type: ComponentType.Thumbnail, }; } //# sourceMappingURL=thumbnail.js.map