(modals): Add Modal<Context> interface.

This commit is contained in:
2026-10-14 13:28:21 +08:00
parent d0cb22e98f
commit 9d31d5a3e0
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -4,4 +4,5 @@ export * from './event.d';
export * from './e621-types.d'; export * from './e621-types.d';
export * from './handler.d'; export * from './handler.d';
export * from './helper-types.d'; export * from './helper-types.d';
export * from './modal.d';
export * from './task.d'; export * from './task.d';
+6
View File
@@ -0,0 +1,6 @@
import { ModalSubmitInteraction } from 'discord.js';
export interface Modal<Context> {
id: string;
execute(context: Context, interaction: ModalSubmitInteraction, ...args: any): Promise<void>;
}