mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: yes
This commit is contained in:
parent
466b477193
commit
d55e904366
@ -174,13 +174,10 @@ export class BaseInteraction<
|
||||
if (this.__reply) {
|
||||
//@ts-expect-error
|
||||
const { files, ...data } = body.data ?? {};
|
||||
return this.__reply({
|
||||
body: {
|
||||
type: body.type,
|
||||
data,
|
||||
},
|
||||
return (this.replied = this.__reply({
|
||||
body: BaseInteraction.transformBodyRequest({ data, type: body.type }),
|
||||
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)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user