UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

13 lines (12 loc) 561 B
import type { CommandData } from "../../types/config.ts"; import { createHandlerSetup } from "./index.ts"; import type { CommandAutocompleteInteraction, CommandInteraction } from "../../types/interaction.ts"; /** * Installs commands to the Discord API */ export declare function installCommands(commands: CommandData[]): Promise<void>; /** * Creates the command handler * @returns A function that runs a command */ export declare const setupCommands: ReturnType<typeof createHandlerSetup<CommandData, CommandInteraction | CommandAutocompleteInteraction>>;