From 2eff5e7d9b1e8ab27527f450b776dc39aa66f3d6 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 22 Sep 2022 17:35:50 +0700 Subject: [PATCH 1/2] fix(fetchMemberList) throw error wrong --- src/managers/GuildMemberManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/GuildMemberManager.js b/src/managers/GuildMemberManager.js index 66feebe..eed15a2 100644 --- a/src/managers/GuildMemberManager.js +++ b/src/managers/GuildMemberManager.js @@ -572,6 +572,7 @@ class GuildMemberManager extends CachedManager { timeout.refresh(); if (guild.id !== this.guild.id) return; if (type == 'INVALIDATE' && offset > 100) { + clearTimeout(timeout); this.client.removeListener(Events.GUILD_MEMBER_LIST_UPDATE, handler); this.client.decrementMaxListeners(); reject(new Error('INVALIDATE_MEMBER', raw.ops[0].range)); From d514d2ed60bbc34fb75692a4cd36297cdd1547f9 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 22 Sep 2022 17:36:11 +0700 Subject: [PATCH 2/2] New abort code: `INVITES_DISABLED: 40069` https://github.com/Discord-Datamining/Discord-Datamining/commit/1a286f872cdd5162438214c280068b5f8ccf1c79#commitcomment-84620262 --- src/util/Constants.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/Constants.js b/src/util/Constants.js index 77a8166..a10d592 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -1254,6 +1254,7 @@ exports.APIErrors = { TARGET_USER_NOT_CONNECTED_TO_VOICE: 40032, ALREADY_CROSSPOSTED: 40033, TAG_REQUIRED: 40067, + INVITES_DISABLED: 40069, MISSING_ACCESS: 50001, INVALID_ACCOUNT_TYPE: 50002, CANNOT_EXECUTE_ON_DM: 50003,