From 1d58c9692cbf5c65728ae17b2e31555eed06f186 Mon Sep 17 00:00:00 2001 From: Nix Krystik Date: Wed, 14 Oct 2026 10:07:07 +0800 Subject: [PATCH] (buttons): Add `Button` interface. --- src/types/button.d.ts | 6 ++++++ src/types/index.d.ts | 1 + 2 files changed, 7 insertions(+) create mode 100644 src/types/button.d.ts 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';