Update type.d.ts

This commit is contained in:
CL TheDreWen
2026-01-04 17:16:00 +01:00
committed by GitHub
parent c1168b7cd4
commit 6dc68dfae9

4
src/type.d.ts vendored
View File

@@ -1,3 +1,3 @@
import { ButtonInteraction, ChatInputCommandInteraction, SlashCommandOptionsOnlyBuilder } from "discord.js";
import { ButtonInteraction, ChatInputCommandInteraction, SlashCommandOptionsOnlyBuilder, ModalSubmitInteraction } from "discord.js";
export type CommandDefinition = { data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[], modals?: { id: string, handle: (interaction: ModalSubmitInteraction) => void }[]};
export type CommandDefinition = { data: SlashCommandBuilder | SlashCommandOptionsOnlyBuilder, execute: (interaction: ChatInputCommandInteraction) => void, buttons?: { id: string, handle: (interaction: ButtonInteraction) => void}[], modals?: { id: string, handle: (interaction: ModalSubmitInteraction) => void }[]};