Skip to content

Commit

Permalink
fix(guildmemberremove): remove member's presence for v13 (#8182)
Browse files Browse the repository at this point in the history
Backports #8181
  • Loading branch information
almeidx committed Jun 29, 2022
1 parent 4ae08ad commit e8d72c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/actions/GuildMemberRemove.js
Expand Up @@ -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 };
Expand Down

0 comments on commit e8d72c7

Please sign in to comment.