mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
8c40679036
commit
fd758235f4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user