Update GuildMemberManager.js

This commit is contained in:
Elysia 2023-08-03 20:53:22 +07:00
parent 36bb090ebe
commit 75ad773ce9

View File

@ -201,16 +201,15 @@ class GuildMemberManager extends CachedManager {
this.guild.members.me.permissions.has('MANAGE_ROLES') this.guild.members.me.permissions.has('MANAGE_ROLES')
) { ) {
return this._fetchMany(); return this._fetchMany();
} else { } else if (this.guild.memberCount <= 10000) {
return this.fetchByMemberSafety(); return this.fetchByMemberSafety();
/* } else {
NOTE: This is a very slow method, and can take up to 999+ minutes to complete. // NOTE: This is a very slow method, and can take up to 999+ minutes to complete.
this.fetchBruteforce({ this.fetchBruteforce({
delay: 50, delay: 50,
skipWarn: true, skipWarn: true,
depth: 1, depth: 1,
}); });
*/
} }
} }
const user = this.client.users.resolveId(options); const user = this.client.users.resolveId(options);