mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
2
packages/discord.js/typings/index.d.ts
vendored
2
packages/discord.js/typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user