Browse Source

Maintain SocketGuild.DownloadedMemberCount

pull/204/head
RogueException 8 years ago
parent
commit
6372f6817f
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/Discord.Net/WebSocket/Entities/Guilds/SocketGuild.cs

+ 3
- 0
src/Discord.Net/WebSocket/Entities/Guilds/SocketGuild.cs View File

@@ -229,7 +229,10 @@ namespace Discord.WebSocket
MemberCount--;
SocketGuildUser member;
if (_members.TryRemove(id, out member))
{
DownloadedMemberCount--;
return member;
}
return null;
}
public override async Task DownloadUsersAsync()


Loading…
Cancel
Save