mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: modals execution without .run (#268)
* fix: modals execution * fix: lol
This commit is contained in:
parent
13b8a32d42
commit
dd8fbd2789
@ -239,9 +239,11 @@ export class BaseInteraction<
|
|||||||
}
|
}
|
||||||
const result = await this.matchReplied(body, withResponse);
|
const result = await this.matchReplied(body, withResponse);
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
if (body.data instanceof Modal && body.data.__exec)
|
if (body.data instanceof Modal) {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
this.client.components.modals.set(this.user.id, (body.data as Modal).__exec);
|
if (body.data.__exec) this.client.components.modals.set(this.user.id, (body.data as Modal).__exec);
|
||||||
|
else if (this.client.components?.modals.has(this.user.id)) this.client.components.modals.delete(this.user.id);
|
||||||
|
}
|
||||||
return result as never;
|
return result as never;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user