Skip to content

Commit 5a21662

Browse files
committed
Fix CommandObject type
1 parent 7a29f2d commit 5a21662

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/commandkit/src/types/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type {
77
APIApplicationCommandOption,
88
} from 'discord.js';
99
import type { CommandKit } from '../CommandKit';
10-
import type { CommandFileObject } from '../typings';
1110

1211
export interface CommandProps {
1312
interaction: CommandInteraction;
@@ -104,7 +103,13 @@ type UserOrMessageCommandData = BaseCommandData & {
104103

105104
export type CommandData = ChatInputCommandData | UserOrMessageCommandData;
106105

107-
export type CommandObject = Omit<CommandFileObject, 'run'>;
106+
export type CommandObject = {
107+
data: CommandData;
108+
options?: CommandOptions;
109+
filePath: string;
110+
category: string | null;
111+
[key: string]: any;
112+
};
108113

109114
export enum ReloadType {
110115
'Developer' = 'dev',

0 commit comments

Comments
 (0)