mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
(buttons): Add Button<Context> interface.
This commit is contained in:
Vendored
+6
@@ -0,0 +1,6 @@
|
|||||||
|
import { ButtonInteraction } from "discord.js";
|
||||||
|
|
||||||
|
export interface Button<Context> {
|
||||||
|
id: string;
|
||||||
|
execute(context: Context, interaction: ButtonInteraction, ...args: any[]): Promise<void>;
|
||||||
|
}
|
||||||
Vendored
+1
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user