fix(Guild): unable to fetch templates (#8420)

This commit is contained in:
n1ck_pro
2022-08-08 11:11:10 +02:00
committed by GitHub
parent 6ef4754d40
commit aac8acc22b

View File

@@ -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());
}