UNPKG

djsify

Version:

A powerful and flexible Discord bot framework for building feature-rich Discord bots with ease. Supports message commands, slash commands, and button interactions.

19 lines (16 loc) 596 B
import SlashType from "./SlashType.js"; import { SlashCommandInteraction } from "./Commands.js"; class SlashCommandFile { /** * @readonly * @param {object} data - The command data * @param {Function} execute - The execute function */ constructor(data: SlashType, execute: (interaction: SlashCommandInteraction) => Promise<void> | void) { this.data = data; this.execute = execute; } declare data: SlashType; declare execute: (interaction: SlashCommandInteraction) => Promise<void> | void; }; export { SlashCommandFile };