change: prettier code

This commit is contained in:
TriForMine
2021-10-08 14:42:25 +00:00
committed by GitHub Action
parent 8c40679036
commit fd758235f4

View File

@@ -18,7 +18,11 @@ import { ws } from "../../ws/ws.ts";
export function fetchMembers(guildId: bigint, shardId: number, options?: Omit<RequestGuildMembers, "guildId">) {
// You can request 1 member without the intent
// Check if intents is not 0 as proxy ws won't set intents in other instances
if (ws.identifyPayload.intents && (!options?.limit || options.limit > 1) && !(ws.identifyPayload.intents & DiscordGatewayIntents.GuildMembers)) {
if (
ws.identifyPayload.intents &&
(!options?.limit || options.limit > 1) &&
!(ws.identifyPayload.intents & DiscordGatewayIntents.GuildMembers)
) {
throw new Error(Errors.MISSING_INTENT_GUILD_MEMBERS);
}