From 8749c50f0a54b372087fba36371b7566a6b29611 Mon Sep 17 00:00:00 2001 From: lazuee Date: Fri, 22 Apr 2022 01:51:28 +0800 Subject: [PATCH] Update Webhook.js --- src/structures/Webhook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index dbd2991..0c201ee 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -212,7 +212,7 @@ class Webhook { query: { thread_id: messagePayload.options.threadId, wait: true }, auth: false, }); - d.webembed = this.messages.cache.get(_d.id) ?? this.messages._add(_d); + d.webembed = this.client.channels?.cache.get(d.channel_id)?.messages._add(d, false) ?? d; } return this.client.channels?.cache.get(d.channel_id)?.messages._add(d, false) ?? d;