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
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2

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}