mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-17 19:58:18 +00:00
deno fmt
This commit is contained in:
@@ -14,12 +14,12 @@ export async function getRoles(guildId: string) {
|
||||
|
||||
const result = (await rest.runMethod(
|
||||
"get",
|
||||
endpoints.GUILD_ROLES(guildId)
|
||||
endpoints.GUILD_ROLES(guildId),
|
||||
)) as DiscordRole[];
|
||||
|
||||
return new Collection(
|
||||
result
|
||||
.map((role) => snakeKeysToCamelCase<Role>(role))
|
||||
.map((role) => [role.id, role])
|
||||
.map((role) => [role.id, role]),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user