diff --git a/src/commands/types/commands.ts b/src/commands/types/commands.ts index 327e0c3..96bae1c 100644 --- a/src/commands/types/commands.ts +++ b/src/commands/types/commands.ts @@ -1,10 +1,17 @@ import { BaseCommand } from "../BaseCommand.js"; import { ChatCommand } from "../ChatCommand.js"; -import { MessageCommand } from "../ContextMenuCommand.js"; +import { ContextMenuCommand } from "../ContextMenuCommand.js"; import { ParameterResolvable } from "structures/types/Parameter.js"; import { TargetID } from "structures/parameter.js"; +import { CommandInteraction, Message, MessageEmbed, ReplyMessageOptions } from "discord.js"; -export type CommandResolvable = BaseCommand | ChatCommand | MessageCommand; +export type CommandResolvable = BaseCommand | ChatCommand | ContextMenuCommand; + +export type CommandType = "CHAT" | "MESSAGE" | "USER"; + +export type CommandFunctionReturnTypes = void | string | MessageEmbed | ReplyMessageOptions | Promise; + +export type CommandFunction = (args: ReadonlyMap | TargetID, interaction?: Message | CommandInteraction) => CommandFunctionReturnTypes; export interface CommandInteractionData { command: BaseCommand;