Update GuildMemberManager.js

This commit is contained in:
Elysia 2023-03-30 00:13:40 +07:00
parent 10ac0c6c6a
commit 6abfc15b59

View File

@ -518,6 +518,7 @@ class GuildMemberManager extends CachedManager {
.map(v => _.join(v, '')) .map(v => _.join(v, ''))
.value(); .value();
for (const query of dictionary) { for (const query of dictionary) {
if (this.guild.members.cache.size >= this.guild.memberCount) break;
this.client.emit( this.client.emit(
'debug', 'debug',
`[INFO] GuildMemberManager#fetchBruteforce: Querying ${query}, Skip: [${skipValues.join(', ')}]`, `[INFO] GuildMemberManager#fetchBruteforce: Querying ${query}, Skip: [${skipValues.join(', ')}]`,