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.

23 lines (22 loc) 705 B
import { ButtoncommandInteraction } from "./Commands.js"; declare class ButtonCommandFile { /** * @readonly * @param {object} data - The command data * @param {Function} execute - The execute function */ constructor(data: { customId: string; startsWith?: boolean; includes?: boolean; endsWith?: boolean; }, execute: (interaction: ButtoncommandInteraction, ...others: any[]) => Promise<void> | void); data: { customId: string; startsWith?: boolean; includes?: boolean; endsWith?: boolean; }; execute: (interaction: ButtoncommandInteraction) => Promise<void> | void; } export { ButtonCommandFile };