We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CommandObject
1 parent 7a29f2d commit 5a21662Copy full SHA for 5a21662
packages/commandkit/src/types/index.ts
@@ -7,7 +7,6 @@ import type {
7
APIApplicationCommandOption,
8
} from 'discord.js';
9
import type { CommandKit } from '../CommandKit';
10
-import type { CommandFileObject } from '../typings';
11
12
export interface CommandProps {
13
interaction: CommandInteraction;
@@ -104,7 +103,13 @@ type UserOrMessageCommandData = BaseCommandData & {
104
103
105
export type CommandData = ChatInputCommandData | UserOrMessageCommandData;
106
107
-export type CommandObject = Omit<CommandFileObject, 'run'>;
+export type CommandObject = {
+ data: CommandData;
108
+ options?: CommandOptions;
109
+ filePath: string;
110
+ category: string | null;
111
+ [key: string]: any;
112
+};
113
114
export enum ReloadType {
115
'Developer' = 'dev',
0 commit comments