mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
fix(GuildTemplate): 'guild' getter (#5040)
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user