Skip to content

Commit

Permalink
fix(GuildTemplate): 'guild' getter (#5040)
Browse files Browse the repository at this point in the history
  • Loading branch information
izexi committed Nov 25, 2020
1 parent 8d650a7 commit 53529bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/structures/GuildTemplate.js
Expand Up @@ -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}
Expand Down

0 comments on commit 53529bd

Please sign in to comment.