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

This commit is contained in:
izexi
2020-11-25 22:50:28 +00:00
committed by GitHub
parent 8d650a7250
commit 53529bd05d

View File

@@ -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}