fast-discord-js
Version:
FastDiscordJS is an unofficial extension of the 'discord.js' library. Our extension aims to simplify the development of Discord bots, promoting cleaner code and easier maintenance.
15 lines (14 loc) • 593 B
TypeScript
import { ApplicationCommandOption, ApplicationCommandType, AutocompleteInteraction, CommandInteraction } from "discord.js";
import { Client } from ".";
export declare const slashCommandHandlers: Map<any, any>;
export interface ISlashCommandHandler {
name: string;
description: string;
type: ApplicationCommandType;
run: (client: Client, interaction: CommandInteraction) => any;
options?: ApplicationCommandOption[];
autocomplete?: (client: Client, interaction: AutocompleteInteraction) => any;
}
export default class {
constructor(options: ISlashCommandHandler);
}