From bb78c50b6f6b2b0b56f6f68d4844c8e8ed6b25cf Mon Sep 17 00:00:00 2001 From: Christopher F Date: Thu, 9 Mar 2017 19:25:43 -0500 Subject: [PATCH] Fix ConnectionState on DiscordSocketClient This should resolve a plethora of relates issues, including user downloading not working (#542), possibly #531 --- src/Discord.Net.WebSocket/DiscordSocketClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.WebSocket/DiscordSocketClient.cs b/src/Discord.Net.WebSocket/DiscordSocketClient.cs index 66c25e5f6..fdb8b2359 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketClient.cs @@ -45,7 +45,7 @@ namespace Discord.WebSocket /// Gets the shard of of this client. public int ShardId { get; } /// Gets the current connection state of this client. - public ConnectionState ConnectionState { get; private set; } + public ConnectionState ConnectionState => _connection.State; /// Gets the estimated round-trip latency, in milliseconds, to the gateway server. public int Latency { get; private set; } internal UserStatus Status { get; private set; } = UserStatus.Online;