Skip to content

Commit f8b0c01

Browse files
izexiiCrawl
authored andcommitted
fix(GuildTemplate): 'guild' getter (#5040)
1 parent 1f4b9fe commit f8b0c01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/structures/GuildTemplate.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ class GuildTemplate extends Base {
198198
* @readonly
199199
*/
200200
get guild() {
201-
return this.client.guilds.get(this.guildID) || null;
201+
return this.client.guilds.cache.get(this.guildID) || null;
202202
}
203+
203204
/**
204205
* The URL of this template
205206
* @type {string}

0 commit comments

Comments
 (0)