From 53529bd05deb449d5d9bbfa332470c9881d8093c 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}