diff --git a/src/helpers/discovery/get_discovery_categories.ts b/src/helpers/discovery/get_discovery_categories.ts index 4c390a616..8ec9858f5 100644 --- a/src/helpers/discovery/get_discovery_categories.ts +++ b/src/helpers/discovery/get_discovery_categories.ts @@ -1,25 +1,18 @@ import { rest } from "../../rest/rest.ts"; -import { - DiscordDiscoveryCategory, - DiscoveryCategory, -} from "../../types/discovery/discovery_category.ts"; +import { DiscoveryCategory } from "../../types/discovery/discovery_category.ts"; import { Collection } from "../../util/collection.ts"; import { endpoints } from "../../util/constants.ts"; -import { snakeKeysToCamelCase } from "../../util/utils.ts"; /** Returns an array of discovery category objects that can be used when editing guilds */ export async function getDiscoveryCategories() { - const result = await rest.runMethod( + const result = await rest.runMethod( "get", endpoints.DISCOVERY_CATEGORIES, ); return new Collection( result.map( - (category) => [ - category.id, - snakeKeysToCamelCase(category), - ], + (category) => [category.id, category], ), ); }