Skip to content

Commit

Permalink
fix(command): use CacheType generic consistently (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lioness100 committed Feb 25, 2022
1 parent a188501 commit 5c8c955
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/structures/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export namespace ChatInputCommand {
export type Context = AliasPiece.Context;
export type RunInTypes = CommandOptionsRunType;
export type RunContext = ChatInputCommandContext;
export type Interaction = CommandInteraction;
export type Interaction<Cached extends import('discord.js').CacheType = import('discord.js').CacheType> = CommandInteraction<Cached>;
export type Registry = ApplicationCommandRegistry;
}

Expand All @@ -512,7 +512,7 @@ export namespace ContextMenuCommand {
export type Context = AliasPiece.Context;
export type RunInTypes = CommandOptionsRunType;
export type RunContext = ContextMenuCommandContext;
export type Interaction = ContextMenuInteraction;
export type Interaction<Cached extends import('discord.js').CacheType = import('discord.js').CacheType> = ContextMenuInteraction<Cached>;
export type Registry = ApplicationCommandRegistry;
}

Expand All @@ -524,7 +524,7 @@ export namespace AutocompleteCommand {
export type Context = AliasPiece.Context;
export type RunInTypes = CommandOptionsRunType;
export type RunContext = AutocompleteCommandContext;
export type Interaction = AutocompleteInteraction;
export type Interaction<Cached extends import('discord.js').CacheType = import('discord.js').CacheType> = AutocompleteInteraction<Cached>;
export type Registry = ApplicationCommandRegistry;
}

Expand Down

0 comments on commit 5c8c955

Please sign in to comment.