Skip to content

Commit

Permalink
fix(Guild): unable to fetch templates (#8420)
Browse files Browse the repository at this point in the history
  • Loading branch information
N1ckPro committed Aug 8, 2022
1 parent 6ef4754 commit aac8acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Guild.js
Expand Up @@ -560,7 +560,7 @@ class Guild extends AnonymousGuild {
* @returns {Promise<Collection<string, GuildTemplate>>}
*/
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());
}

Expand Down

1 comment on commit aac8acc

@vercel
Copy link

@vercel vercel bot commented on aac8acc Aug 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.