Skip to content

Commit

Permalink
fix: SocketGuild.HasAllMembers is false if a user left a guild (#1683)
Browse files Browse the repository at this point in the history
* Fix: HasAllMembers is false if a user left

* Fix: Correct boolean logic
  • Loading branch information
230Daniel committed Dec 14, 2020
1 parent aacfea0 commit 47f571e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public class SocketGuild : SocketEntity<ulong>, IGuild, IDisposable
/// <inheritdoc />
public string BannerUrl => CDN.GetGuildBannerUrl(Id, BannerId);
/// <summary> Indicates whether the client has all the members downloaded to the local guild cache. </summary>
public bool HasAllMembers => MemberCount == DownloadedMemberCount;// _downloaderPromise.Task.IsCompleted;
public bool HasAllMembers => MemberCount <= DownloadedMemberCount;// _downloaderPromise.Task.IsCompleted;
/// <summary> Indicates whether the guild cache is synced to this guild. </summary>
public bool IsSynced => _syncPromise.Task.IsCompleted;
public Task SyncPromise => _syncPromise.Task;
Expand Down

0 comments on commit 47f571e

Please sign in to comment.