@shadow-dev/core
Version:
A modular core framework for Discord bot development, providing commands, buttons, menus, middleware, and more.
17 lines (13 loc) • 460 B
text/typescript
import { StringSelectMenuInteraction, Client } from "discord.js";
export interface MenuOptions {
customId: string;
run: (interaction: StringSelectMenuInteraction, client: Client) => Promise<void>;
}
export class Menu {
customId: string;
run: (interaction: StringSelectMenuInteraction, client: Client) => Promise<void>;
constructor(options: MenuOptions) {
this.customId = options.customId;
this.run = options.run;
}
}