Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/types/ChatInput/ChatInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<TNamespace extends NamespaceEnums> extends IDBIBaseExecuteCtx<TNamespace> {
interaction: Discord.ChatInputCommandInteraction<"cached">;
interaction: (Discord.ChatInputCommandInteraction<"cached"> & { commandMessage: null }) | (FakeMessageInteraction & { commandMessage: Discord.Message });
}

export type TDBIChatInputOmitted<TNamespace extends NamespaceEnums> = Omit<DBIChatInput<TNamespace>, "type" | "dbi" | "ttl" | "at" | "toJSON">;
Expand All @@ -25,4 +26,4 @@ export class DBIChatInput<TNamespace extends NamespaceEnums> extends DBIBaseInte
defaultMemberPermissions?: Discord.PermissionsString[];
declare options?: any[];
override onExecute(ctx: IDBIChatInputExecuteCtx<TNamespace>) {}
}
}