Skip to content

Commit

Permalink
fix: narrow commandContext type
Browse files Browse the repository at this point in the history
  • Loading branch information
samfundev committed Jul 20, 2024
1 parent b21bb2d commit ff32eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/structures/Argument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export interface ArgumentContext<T = unknown> extends Record<PropertyKey, unknow
args: Args;
messageOrInteraction: Message | AnyInteraction;
command: MessageCommand | ChatInputCommand;
commandContext: Record<PropertyKey, unknown>;
commandContext: MessageCommand.RunContext & ChatInputCommand.RunContext;
minimum?: number;
maximum?: number;
inclusive?: boolean;
Expand Down

0 comments on commit ff32eb1

Please sign in to comment.