Skip to content

Commit

Permalink
fix(GuildMemberManager): pass empty object for fetching many
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Mar 7, 2025
1 parent e273afb commit 6c5f4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/managers/GuildMemberManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class GuildMemberManager extends CachedManager {
query: initialQuery,
time = 120e3,
nonce = DiscordSnowflake.generate().toString(),
}) {
} = {}) {
if (nonce.length > 32) throw new DiscordjsRangeError(ErrorCodes.MemberFetchNonceLength);

const query = initialQuery || (!users ? '' : undefined);
Expand Down

0 comments on commit 6c5f4a4

Please sign in to comment.