From 578bc951bdcdc21ec5aee86e7a47a17e8c867dfc Mon Sep 17 00:00:00 2001 From: Maksi <96802571+MaksiRose@users.noreply.github.com> Date: Sat, 24 Sep 2022 16:09:24 +0200 Subject: [PATCH] fix: RepliableInteraction respect cached generic (#8667) * fix: RepliableInteraction respect cached generic * fix: prettier format * Update packages/discord.js/typings/index.d.ts Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/typings/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index bf9698317..47cf242e2 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1501,7 +1501,11 @@ export type Interaction = | AutocompleteInteraction | ModalSubmitInteraction; -export type RepliableInteraction = Exclude; +export type RepliableInteraction = Exclude< + Interaction, + AutocompleteInteraction +>; + export class BaseInteraction extends Base { // This a technique used to brand different cached types. Or else we'll get `never` errors on typeguard checks. private readonly _cacheType: Cached;