UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

11 lines (10 loc) 505 B
import type { ComponentData } from "../../types/config.ts"; import { createHandlerSetup } from "./index.ts"; import type { MessageComponentInteraction, ModalSubmitInteraction } from "../../types/interaction.ts"; type Data = MessageComponentInteraction | ModalSubmitInteraction; /** * Creates the component handler * @returns A function that runs a component */ export declare const setupComponents: ReturnType<typeof createHandlerSetup<ComponentData, Data, [Data, Record<string, string>]>>; export {};