From b79be2df419611f1e2d6722005c60f88848514ba Mon Sep 17 00:00:00 2001 From: CL TheDreWen Date: Fri, 31 Oct 2025 14:37:27 +0100 Subject: [PATCH] Update CommandDefinition type to support SlashCommandOptionsOnlyBuilder --- src/type.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/type.d.ts b/src/type.d.ts index 3d13cb6..c5b5fb3 100644 --- a/src/type.d.ts +++ b/src/type.d.ts @@ -1,3 +1,3 @@ -import { ButtonInteraction, ChatInputCommandInteraction } from "discord.js"; +import { ButtonInteraction, ChatInputCommandInteraction, SlashCommandOptionsOnlyBuilder } from "discord.js"; -export type CommandDefinition = { data: SlashCommandBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[]}; \ No newline at end of file +export type CommandDefinition = { data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[]}; \ No newline at end of file