mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
fix(GuildTemplate): 'guild' getter (#5040)
This commit is contained in:
parent
8d650a7250
commit
53529bd05d
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