(buttons): Add Button<Context> interface.

This commit is contained in:
2026-10-14 10:07:07 +08:00
parent d0cb22e98f
commit 1d58c9692c
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
import { ButtonInteraction } from "discord.js";
export interface Button<Context> {
id: string;
execute(context: Context, interaction: ButtonInteraction, ...args: any[]): Promise<void>;
}
+1
View File
@@ -1,3 +1,4 @@
export * from './button.d';
export * from './command.d'; export * from './command.d';
export * from './database-types.d'; export * from './database-types.d';
export * from './event.d'; export * from './event.d';