Skip to content

Commit

Permalink
fix(Webhook): use correct method name (#7348)
Browse files Browse the repository at this point in the history
  • Loading branch information
filostack committed Jan 26, 2022
1 parent ec0fba1 commit 11e5e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class Webhook {
if (options instanceof MessagePayload) messagePayload = options;
else messagePayload = MessagePayload.create(this, options);

const { body, files } = await messagePayload.resolveData().resolveFiles();
const { body, files } = await messagePayload.resolveBody().resolveFiles();

const d = await this.client.rest.patch(
Routes.webhookMessage(this.id, this.token, typeof message === 'string' ? message : message.id),
Expand Down

0 comments on commit 11e5e5a

Please sign in to comment.