This commit is contained in:
Skillz4Killz
2021-04-13 17:59:19 +00:00
committed by GitHub
parent c2f2afb211
commit 9446960bb0
8 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -14,13 +14,13 @@ export async function getGuildTemplates(guildId: string) {
const templates = (await rest.runMethod(
"get",
endpoints.GUILD_TEMPLATES(guildId)
endpoints.GUILD_TEMPLATES(guildId),
)) as DiscordTemplate[];
return new Collection(
templates.map((template) => [
template.code,
structures.createTemplateStruct(template),
])
]),
);
}