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