mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
deno fmt
This commit is contained in:
@@ -11,12 +11,12 @@ export async function getInvites(guildId: string) {
|
||||
|
||||
const result = (await rest.runMethod(
|
||||
"get",
|
||||
endpoints.GUILD_INVITES(guildId)
|
||||
endpoints.GUILD_INVITES(guildId),
|
||||
)) as DiscordInvite[];
|
||||
|
||||
return new Collection(
|
||||
result
|
||||
.map((invite) => snakeKeysToCamelCase<Invite>(invite))
|
||||
.map((invite) => [invite.code, invite])
|
||||
.map((invite) => [invite.code, invite]),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user