UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

13 lines (12 loc) 542 B
import { type APIFileComponent } from "discord-api-types/v10"; /** * Creates a file component * * Displays an attached file * * @param file - This unfurled media item is unique in that it **only** support attachment references using the `attachment://<filename>` syntax * * **IMPORTANT**: * In order to use this component, you must add the `MessageFlags.IsComponentsV2` flag to your message */ export declare function File(file: APIFileComponent["file"] | string, config?: Omit<APIFileComponent, "file" | "type">): APIFileComponent;