mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
8c664d65dd
commit
f8a2f40b99
@@ -21,11 +21,7 @@ export function fetchMembers(
|
||||
) {
|
||||
// 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 (
|
||||
bot.intents &&
|
||||
(!options?.limit || options.limit > 1) &&
|
||||
!(bot.intents & DiscordGatewayIntents.GuildMembers)
|
||||
) {
|
||||
if (bot.intents && (!options?.limit || options.limit > 1) && !(bot.intents & DiscordGatewayIntents.GuildMembers)) {
|
||||
throw new Error(bot.constants.Errors.MISSING_INTENT_GUILD_MEMBERS);
|
||||
}
|
||||
|
||||
@@ -45,7 +41,7 @@ export function fetchMembers(
|
||||
query: options?.query || (options?.limit ? undefined : ""),
|
||||
limit: options?.limit || 0,
|
||||
presences: options?.presences || false,
|
||||
user_ids: options?.userIds?.map(id => id.toString()),
|
||||
user_ids: options?.userIds?.map((id) => id.toString()),
|
||||
nonce,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user