mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
fix: yes
This commit is contained in:
parent
466b477193
commit
d55e904366
@ -174,13 +174,10 @@ export class BaseInteraction<
|
|||||||
if (this.__reply) {
|
if (this.__reply) {
|
||||||
//@ts-expect-error
|
//@ts-expect-error
|
||||||
const { files, ...data } = body.data ?? {};
|
const { files, ...data } = body.data ?? {};
|
||||||
return this.__reply({
|
return (this.replied = this.__reply({
|
||||||
body: {
|
body: BaseInteraction.transformBodyRequest({ data, type: body.type }),
|
||||||
type: body.type,
|
|
||||||
data,
|
|
||||||
},
|
|
||||||
files: files ? await resolveFiles(files) : undefined,
|
files: files ? await resolveFiles(files) : undefined,
|
||||||
});
|
}).then(() => (this.replied = true)));
|
||||||
}
|
}
|
||||||
return (this.replied = this.client.interactions.reply(this.id, this.token, body).then(() => (this.replied = true)));
|
return (this.replied = this.client.interactions.reply(this.id, this.token, body).then(() => (this.replied = true)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user