Fix collectors and make guild sync add previously unknown members

This commit is contained in:
Amish Shah
2016-09-03 21:21:10 +01:00
parent 09dee3d46a
commit 7ff2568cfc
5 changed files with 8 additions and 6 deletions

View File

@@ -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);
}