fix(guildmemberremove): remove member's presence for v13

v13.9.0 #8182
This commit is contained in:
Cinnamon 2022-07-01 10:34:02 +07:00
parent 533c1c55a7
commit 8c6911143b
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ class GuildMemberRemoveAction extends Action {
*/ */
if (shard.status === Status.READY) client.emit(Events.GUILD_MEMBER_REMOVE, member); 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); guild.voiceStates.cache.delete(data.user.id);
} }
return { guild, member }; return { guild, member };

View File

@ -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 * ```js
* [255, 0, 255] // purple * [255, 0, 255] // purple
* ``` * ```
* @typedef {string|Color|number|number[]} ColorResolvable * @typedef {string|Color|number|number[]} ColorResolvable
*/ */
/** /**