Assign a default value to DiscordSocketClient.Status
This property previously had a default value of 'null'. In DiscordSocketClient#ConnectInternalAsync, we would attempt to send a null status to Discord, which would fail to serialize, and force the client to disconnect.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Discord.WebSocket
|
||||
public ConnectionState ConnectionState { get; private set; }
|
||||
/// <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; }
|
||||
internal UserStatus Status { get; private set; } = UserStatus.Online;
|
||||
internal Game? Game { get; private set; }
|
||||
|
||||
//From DiscordSocketConfig
|
||||
|
||||
Reference in New Issue
Block a user