mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 22:21:17 +00:00
fix(GuildTemplate): 'guild' getter (#5040)
This commit is contained in:
parent
1f4b9fe749
commit
f8b0c01c26
1 changed files with 2 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue