Fix Webhook send #108

DiscordAPIError: Invalid request origin
This commit is contained in:
March 7th
2022-05-14 12:12:10 +07:00
parent 9c8d53076c
commit fc7f02e85b
2 changed files with 3 additions and 3 deletions

View File

@@ -198,6 +198,7 @@ class Webhook {
files,
query: { thread_id: messagePayload.options.threadId, wait: true },
auth: false,
versioned: true,
});
return this.client.channels?.cache.get(d.channel_id)?.messages._add(d, false) ?? d;
}