types: fix BooleanCache never resolving to true (#7809)

* types: fix BooleanCache never resolving to true

* fix: broke other types by accident
This commit is contained in:
n1ck_pro
2022-04-19 15:57:44 +02:00
committed by GitHub
parent c5fb548529
commit 440ac243ca

View File

@@ -397,7 +397,7 @@ export interface InteractionResponseFields<Cached extends CacheType = CacheType>
awaitModalSubmit(options: AwaitModalSubmitOptions<ModalSubmitInteraction>): Promise<ModalSubmitInteraction<Cached>>;
}
export type BooleanCache<T extends CacheType> = T extends ['cached'] ? true : false;
export type BooleanCache<T extends CacheType> = T extends 'cached' ? true : false;
export abstract class CommandInteraction<Cached extends CacheType = CacheType> extends Interaction<Cached> {
public get command(): ApplicationCommand | ApplicationCommand<{ guild: GuildResolvable }> | null;