Skip to content

Commit d55e904

Browse files
committed
fix: yes
1 parent 466b477 commit d55e904

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/structures/Interaction.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,10 @@ export class BaseInteraction<
174174
if (this.__reply) {
175175
//@ts-expect-error
176176
const { files, ...data } = body.data ?? {};
177-
return this.__reply({
178-
body: {
179-
type: body.type,
180-
data,
181-
},
177+
return (this.replied = this.__reply({
178+
body: BaseInteraction.transformBodyRequest({ data, type: body.type }),
182179
files: files ? await resolveFiles(files) : undefined,
183-
});
180+
}).then(() => (this.replied = true)));
184181
}
185182
return (this.replied = this.client.interactions.reply(this.id, this.token, body).then(() => (this.replied = true)));
186183
}

0 commit comments

Comments
 (0)