Class WebSocketClosedException
The exception that is thrown when the WebSocket session is closed by Discord.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class WebSocketClosedException : Exception, ISerializable, _Exception
Properties​
CloseCode​
Gets the close code sent by Discord.
View Source​
Declaration
public int CloseCode { get; }
Reason​
Gets the reason of the interruption.
View Source​
Declaration
public string Reason { get; }
Implements​
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception