From 8c6911143bb79d09fb7e4c4b2831ef7c0ac46cae Mon Sep 17 00:00:00 2001 From: Cinnamon <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 1 Jul 2022 10:34:02 +0700 Subject: [PATCH] fix(guildmemberremove): remove member's presence for v13 v13.9.0 #8182 --- src/client/actions/GuildMemberRemove.js | 1 + src/util/Util.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/actions/GuildMemberRemove.js b/src/client/actions/GuildMemberRemove.js index 5776696..08b5370 100644 --- a/src/client/actions/GuildMemberRemove.js +++ b/src/client/actions/GuildMemberRemove.js @@ -22,6 +22,7 @@ class GuildMemberRemoveAction extends Action { */ if (shard.status === Status.READY) client.emit(Events.GUILD_MEMBER_REMOVE, member); } + guild.presences.cache.delete(data.user.id); guild.voiceStates.cache.delete(data.user.id); } return { guild, member }; diff --git a/src/util/Util.js b/src/util/Util.js index 10f757e..69048ef 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -430,11 +430,11 @@ class Util extends null { } /** -* Can be a number, hex string, a {@link Color}, or an RGB array like: + * Can be a number, hex string, a {@link Color}, or an RGB array like: * ```js * [255, 0, 255] // purple * ``` -* @typedef {string|Color|number|number[]} ColorResolvable + * @typedef {string|Color|number|number[]} ColorResolvable */ /**