Browse Source

Fix ConnectionState on DiscordSocketClient

This should resolve a plethora of relates issues, including user downloading not working (#542), possibly #531
tags/1.0-rc
Christopher F 8 years ago
parent
commit
bb78c50b6f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 1
- 1
src/Discord.Net.WebSocket/DiscordSocketClient.cs 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;


Loading…
Cancel
Save