fix(GuildTemplate): 'guild' getter (#5040)

This commit is contained in:
izexi
2020-11-25 22:50:28 +00:00
committed by iCrawl
parent 1f4b9fe749
commit f8b0c01c26

View File

@@ -198,8 +198,9 @@ class GuildTemplate extends Base {
* @readonly * @readonly
*/ */
get guild() { get guild() {
return this.client.guilds.get(this.guildID) || null; return this.client.guilds.cache.get(this.guildID) || null;
} }
/** /**
* The URL of this template * The URL of this template
* @type {string} * @type {string}