From 440ac243ca1d6f8cd04603e63e3f2f6ea1722ee8 Mon Sep 17 00:00:00 2001 From: n1ck_pro <59617443+N1ckPro@users.noreply.github.com> Date: Tue, 19 Apr 2022 15:57:44 +0200 Subject: [PATCH] types: fix BooleanCache never resolving to true (#7809) * types: fix BooleanCache never resolving to true * fix: broke other types by accident --- packages/discord.js/typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 405e74630..d151f7481 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -397,7 +397,7 @@ export interface InteractionResponseFields awaitModalSubmit(options: AwaitModalSubmitOptions): Promise>; } -export type BooleanCache = T extends ['cached'] ? true : false; +export type BooleanCache = T extends 'cached' ? true : false; export abstract class CommandInteraction extends Interaction { public get command(): ApplicationCommand | ApplicationCommand<{ guild: GuildResolvable }> | null;