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 authored and iCrawl committed Nov 25, 2020
1 parent 1f4b9fe commit f8b0c01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/structures/GuildTemplate.js
Original file line number Diff line number Diff line change
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 f8b0c01

Please sign in to comment.