From d193d04cea862e2db84ac40226cfdbdb39be46d5 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 16 Oct 2021 23:19:23 +0100 Subject: [PATCH] fix(Webhook): Resolve source guild only if cached (#6834) --- 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 0bffaa110..7accdec6e 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -90,7 +90,7 @@ class Webhook { * The source guild of the webhook * @type {?(Guild|APIGuild)} */ - this.sourceGuild = this.client.guilds?._add(data.source_guild, false) ?? data.source_guild; + this.sourceGuild = this.client.guilds?.resolve(data.source_guild.id) ?? data.source_guild; } else { this.sourceGuild ??= null; }