fix: modal response (#185)

This commit is contained in:
JustEvil 2024-04-17 19:52:31 -06:00 committed by GitHub
parent c860d9ba84
commit d603836bc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;