mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
(modals): Add Modal<Context> interface.
This commit is contained in:
Vendored
+1
@@ -4,4 +4,5 @@ export * from './event.d';
|
||||
export * from './e621-types.d';
|
||||
export * from './handler.d';
|
||||
export * from './helper-types.d';
|
||||
export * from './modal.d';
|
||||
export * from './task.d';
|
||||
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import { ModalSubmitInteraction } from 'discord.js';
|
||||
|
||||
export interface Modal<Context> {
|
||||
id: string;
|
||||
execute(context: Context, interaction: ModalSubmitInteraction, ...args: any): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user