From aac8acc22be7d7af99933ef099eca7deda43cb40 Mon Sep 17 00:00:00 2001 From: n1ck_pro <59617443+N1ckPro@users.noreply.github.com> Date: Mon, 8 Aug 2022 11:11:10 +0200 Subject: [PATCH] fix(Guild): unable to fetch templates (#8420) --- packages/discord.js/src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/structures/Guild.js b/packages/discord.js/src/structures/Guild.js index 7c7401ca0..6d54fdca6 100644 --- a/packages/discord.js/src/structures/Guild.js +++ b/packages/discord.js/src/structures/Guild.js @@ -560,7 +560,7 @@ class Guild extends AnonymousGuild { * @returns {Promise>} */ async fetchTemplates() { - const templates = await this.client.rest.get(Routes.guildTemplate(this.id)); + const templates = await this.client.rest.get(Routes.guildTemplates(this.id)); return templates.reduce((col, data) => col.set(data.code, new GuildTemplate(this.client, data)), new Collection()); }