Fix ConnectionState on DiscordSocketClient

This should resolve a plethora of relates issues, including user downloading not working (#542), possibly #531
This commit is contained in:
Christopher F
2017-03-09 19:25:43 -05:00
parent 1b0e47be42
commit bb78c50b6f

View File

@@ -45,7 +45,7 @@ namespace Discord.WebSocket
/// <summary> Gets the shard of of this client. </summary>
public int ShardId { get; }
/// <summary> Gets the current connection state of this client. </summary>
public ConnectionState ConnectionState { get; private set; }
public ConnectionState ConnectionState => _connection.State;
/// <summary> Gets the estimated round-trip latency, in milliseconds, to the gateway server. </summary>
public int Latency { get; private set; }
internal UserStatus Status { get; private set; } = UserStatus.Online;