From 75ad773ce91cb23dfe811d6a168c8afe512b7de9 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 3 Aug 2023 20:53:22 +0700 Subject: [PATCH] Update GuildMemberManager.js --- src/managers/GuildMemberManager.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/managers/GuildMemberManager.js b/src/managers/GuildMemberManager.js index 6c7ea76..c8be9c8 100644 --- a/src/managers/GuildMemberManager.js +++ b/src/managers/GuildMemberManager.js @@ -201,16 +201,15 @@ class GuildMemberManager extends CachedManager { this.guild.members.me.permissions.has('MANAGE_ROLES') ) { return this._fetchMany(); - } else { + } else if (this.guild.memberCount <= 10000) { return this.fetchByMemberSafety(); - /* - NOTE: This is a very slow method, and can take up to 999+ minutes to complete. + } else { + // NOTE: This is a very slow method, and can take up to 999+ minutes to complete. this.fetchBruteforce({ delay: 50, skipWarn: true, depth: 1, }); - */ } } const user = this.client.users.resolveId(options);