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.
27 lines (25 loc) • 806 B
text/typescript
import { ButtoncommandInteraction } from "./Commands.js";
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) {
this.data = data;
this.execute = execute;
}
declare data: {
customId: string;
startsWith?: boolean;
includes?: boolean;
endsWith?: boolean;
};
declare execute: (interaction: ButtoncommandInteraction) => Promise<void> | void;
};
export { ButtonCommandFile };