Prettified Code!

This commit is contained in:
itohatweb
2021-05-21 15:51:33 +00:00
committed by GitHub Action
parent fe4ab8517b
commit 3549cdeb63
279 changed files with 1617 additions and 1768 deletions
+2 -2
View File
@@ -7,10 +7,10 @@ import { endpoints } from "../../util/constants.ts";
export async function getVoiceRegions(guildId: bigint) {
const result = await rest.runMethod<VoiceRegion[]>(
"get",
endpoints.GUILD_REGIONS(guildId),
endpoints.GUILD_REGIONS(guildId)
);
return new Collection<string, VoiceRegion>(
result.map((region) => [region.id, region]),
result.map((region) => [region.id, region])
);
}