[Fix] Incorrect ConnectionState of a DiscordSocketClient casted to IDiscordClient/BaseSocketClient

This commit is contained in:
Mihail Gribkov
2024-02-26 14:04:55 +03:00
committed by GitHub
parent e61d44ec3f
commit 955fae01a0
2 changed files with 5 additions and 4 deletions

View File

@@ -58,8 +58,8 @@ namespace Discord.WebSocket
public override DiscordSocketRestClient Rest { get; }
/// <summary> Gets the shard of this client. </summary>
public int ShardId { get; }
/// <summary> Gets the current connection state of this client. </summary>
public ConnectionState ConnectionState => _connection.State;
/// <inheritdoc />
public override ConnectionState ConnectionState => _connection.State;
/// <inheritdoc />
public override int Latency { get; protected set; }
/// <inheritdoc />