diff --git a/src/types/button.d.ts b/src/types/button.d.ts new file mode 100644 index 0000000..8ddfd86 --- /dev/null +++ b/src/types/button.d.ts @@ -0,0 +1,6 @@ +import { ButtonInteraction } from "discord.js"; + +export interface Button { + id: string; + execute(context: Context, interaction: ButtonInteraction, ...args: any[]): Promise; +} \ No newline at end of file diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 61a0722..33d226b 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -1,3 +1,4 @@ +export * from './button.d'; export * from './command.d'; export * from './database-types.d'; export * from './event.d';