UNPKG

@shadow-dev/core

Version:

A modular core framework for Discord bot development, providing commands, buttons, menus, middleware, and more.

11 lines (10 loc) 372 B
import { Client, ButtonInteraction } from "discord.js"; import { Button } from "./button"; export declare class ButtonManager { private client; private static buttons; constructor(client: Client); registerButton(button: Button): void; handleInteraction(interaction: ButtonInteraction): Promise<void>; static getAllButtons(): Map<string, Button>; }