This commit is contained in:
MARCROCK22 2024-04-21 16:47:04 -04:00
parent 466b477193
commit d55e904366

View File

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