mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +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
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get guild() {
|
get guild() {
|
||||||
return this.client.guilds.get(this.guildID) || null;
|
return this.client.guilds.cache.get(this.guildID) || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The URL of this template
|
* The URL of this template
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue