UNPKG

cwk-ds-tools

Version:

Zero-boilerplate Discord.js bot framework with built-in MongoDB, automod, slash commands, and more

27 lines (23 loc) 723 B
import { Client, CommandInteraction, Message, Interaction } from 'discord.js'; declare module 'cwk-ds-tools' { interface CommandOptions { name: string; description?: string; slashCommand?: boolean; options?: any[]; run: (interaction: CommandInteraction, client: Client) => Promise<void>; } interface BotClient extends Client { commands: Collection<string, CommandOptions>; dirs: { commandsDir: string; eventsDir: string; interactionsDir: string; }; } export default function init(options?: { commandsDir?: string; eventsDir?: string; interactionsDir?: string; }): void; }