mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fix collectors and make guild sync add previously unknown members
This commit is contained in:
@@ -17,7 +17,9 @@ class GuildMemberRemoveAction extends Action {
|
||||
guild.memberCount--;
|
||||
guild._removeMember(member);
|
||||
this.deleted[guild.id + data.user.id] = member;
|
||||
client.emit(Constants.Events.GUILD_MEMBER_REMOVE, guild, member);
|
||||
if (client.status === Constants.Status.READY) {
|
||||
client.emit(Constants.Events.GUILD_MEMBER_REMOVE, guild, member);
|
||||
}
|
||||
this.scheduleForDeletion(guild.id, data.user.id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user