UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

14 lines (13 loc) 529 B
import { type APIApplicationCommandOption, ApplicationCommandOptionType } from "discord-api-types/v10"; type CommandOptionMap = { [Key in keyof typeof ApplicationCommandOptionType]: Extract<APIApplicationCommandOption, { type: (typeof ApplicationCommandOptionType)[Key]; }>; }; /** * Creates an application command option */ export declare function CommandOption<K extends keyof typeof ApplicationCommandOptionType>(config: Omit<CommandOptionMap[K], "type"> & { type: K; }): CommandOptionMap[K]; export {};