diff --git a/src/types/ChatInput/ChatInput.ts b/src/types/ChatInput/ChatInput.ts index ec069e9..9c187ca 100644 --- a/src/types/ChatInput/ChatInput.ts +++ b/src/types/ChatInput/ChatInput.ts @@ -2,9 +2,10 @@ import Discord from "discord.js"; import { NamespaceEnums } from "../../../generated/namespaceData"; import { DBI } from "../../DBI"; import { DBIBaseInteraction, IDBIBaseExecuteCtx } from "../Interaction"; +import { FakeMessageInteraction } from "../other/FakeMessageInteraction"; export interface IDBIChatInputExecuteCtx extends IDBIBaseExecuteCtx { - interaction: Discord.ChatInputCommandInteraction<"cached">; + interaction: (Discord.ChatInputCommandInteraction<"cached"> & { commandMessage: null }) | (FakeMessageInteraction & { commandMessage: Discord.Message }); } export type TDBIChatInputOmitted = Omit, "type" | "dbi" | "ttl" | "at" | "toJSON">; @@ -25,4 +26,4 @@ export class DBIChatInput extends DBIBaseInte defaultMemberPermissions?: Discord.PermissionsString[]; declare options?: any[]; override onExecute(ctx: IDBIChatInputExecuteCtx) {} -} \ No newline at end of file +}