From 2ace55ebb1b825006bf7df9d0d9a4aad5023d6d9 Mon Sep 17 00:00:00 2001 From: Eren <65873936+Aello1@users.noreply.github.com> Date: Mon, 18 May 2026 21:41:23 +0300 Subject: [PATCH] Add commandMessage property to ChatInput interaction type --- src/types/ChatInput/ChatInput.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +}