removed templatestruct

This commit is contained in:
ITOH
2021-04-15 18:09:40 +02:00
parent 98bf292aff
commit 23a4c0f864
8 changed files with 28 additions and 84 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
import { rest } from "../../rest/rest.ts";
import { structures } from "../../structures/mod.ts";
import { DiscordTemplate, Template } from "../../types/templates/template.ts";
import { Collection } from "../../util/collection.ts";
import { endpoints } from "../../util/constants.ts";
import { requireBotGuildPermissions } from "../../util/permissions.ts";
import { DiscordTemplate } from "../../types/templates/template.ts";
import { Collection } from "../../util/collection.ts";
import { snakeKeysToCamelCase } from "../../util/utils.ts";
/**
* Returns an array of templates.
@@ -20,7 +20,7 @@ export async function getGuildTemplates(guildId: string) {
return new Collection(
templates.map((template) => [
template.code,
structures.createTemplateStruct(template),
snakeKeysToCamelCase<Template>(template),
]),
);
}