mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix(Webhook): use correct method name (#7348)
This commit is contained in:
@@ -314,7 +314,7 @@ class Webhook {
|
|||||||
if (options instanceof MessagePayload) messagePayload = options;
|
if (options instanceof MessagePayload) messagePayload = options;
|
||||||
else messagePayload = MessagePayload.create(this, 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(
|
const d = await this.client.rest.patch(
|
||||||
Routes.webhookMessage(this.id, this.token, typeof message === 'string' ? message : message.id),
|
Routes.webhookMessage(this.id, this.token, typeof message === 'string' ? message : message.id),
|
||||||
|
|||||||
Reference in New Issue
Block a user