From f8b0c01c261ea29c9cbd4b3dd2e53699138d296b Mon Sep 17 00:00:00 2001 From: izexi <43889168+izexi@users.noreply.github.com> Date: Wed, 25 Nov 2020 22:50:28 +0000 Subject: [PATCH] fix(GuildTemplate): 'guild' getter (#5040) --- src/structures/GuildTemplate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structures/GuildTemplate.js b/src/structures/GuildTemplate.js index 123996b9f742..7510bb959528 100644 --- a/src/structures/GuildTemplate.js +++ b/src/structures/GuildTemplate.js @@ -198,8 +198,9 @@ class GuildTemplate extends Base { * @readonly */ get guild() { - return this.client.guilds.get(this.guildID) || null; + return this.client.guilds.cache.get(this.guildID) || null; } + /** * The URL of this template * @type {string}