mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Prettified Code!
This commit is contained in:
@@ -10,10 +10,8 @@ export async function getInvites(guildId: bigint) {
|
||||
|
||||
const result = await rest.runMethod<Invite[]>(
|
||||
"get",
|
||||
endpoints.GUILD_INVITES(guildId),
|
||||
endpoints.GUILD_INVITES(guildId)
|
||||
);
|
||||
|
||||
return new Collection(
|
||||
result.map((invite) => [invite.code, invite]),
|
||||
);
|
||||
return new Collection(result.map((invite) => [invite.code, invite]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user