import {ChatInputCommandInteraction, Interaction, SlashCommandBuilder} from "discord.js"; export interface Command { definition(): SlashCommandBuilder; } export interface ChatInteractionCommand { execute(interaction: ChatInputCommandInteraction): Promise; } export interface AutocompleteCommand { handleAutocomplete(interaction: Interaction): Promise; } export type CommandUnion = Command | Partial | Partial;