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