mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: destructuring modal
This commit is contained in:
parent
5d61fc1005
commit
e63d91f2b2
@ -177,7 +177,9 @@ export class BaseInteraction<
|
||||
private async matchReplied(body: ReplyInteractionBody) {
|
||||
if (this.__reply) {
|
||||
//@ts-expect-error
|
||||
const { files, ...data } = body.data ?? {};
|
||||
const { files, ...rest } = body.data ?? {};
|
||||
//@ts-expect-error
|
||||
const data = body.data instanceof Modal ? body.data : rest;
|
||||
return (this.replied = this.__reply({
|
||||
body: BaseInteraction.transformBodyRequest({ data, type: body.type }),
|
||||
files: files ? await resolveFiles(files) : undefined,
|
||||
|
Loading…
x
Reference in New Issue
Block a user