From d603836bc1b0e6d93279e8c879ee177376c7b6dc Mon Sep 17 00:00:00 2001 From: JustEvil <71156616+EvilG-MC@users.noreply.github.com> Date: Wed, 17 Apr 2024 19:52:31 -0600 Subject: [PATCH] fix: modal response (#185) --- src/structures/Interaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Interaction.ts b/src/structures/Interaction.ts index 9b1d82c..906c2c9 100644 --- a/src/structures/Interaction.ts +++ b/src/structures/Interaction.ts @@ -193,7 +193,7 @@ export class BaseInteraction< // @ts-expect-error } else this.matchReplied(body.data, body.type); // @ts-expect-error - if (body.data instanceof Modal) + if (body.data instanceof Modal && body.data.__exec) // @ts-expect-error this.client.components.modals.set(this.user.id, (body.data as Modal).__exec); await this.replied;