diff --git a/src/helpers/members/fetch_members.ts b/src/helpers/members/fetch_members.ts index cb05f6327..cfec6a943 100644 --- a/src/helpers/members/fetch_members.ts +++ b/src/helpers/members/fetch_members.ts @@ -18,7 +18,11 @@ import { ws } from "../../ws/ws.ts"; export function fetchMembers(guildId: bigint, shardId: number, options?: Omit) { // 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); }