From 6c59898a2e03aab0b7a9e194a0889656ec6fd755 Mon Sep 17 00:00:00 2001 From: izexi <43889168+izexi@users.noreply.github.com> Date: Tue, 24 Nov 2020 12:51:18 +0000 Subject: [PATCH] fix: 'guild' getter --- 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}