Class WebSocketCloseEventArgs
Represents arguments for DiscordWebSocketClosed event.
Namespace: DisCatSharp.Lavalink.EventArgs
Assembly: DisCatSharp.Lavalink.dll
Syntax
public sealed class WebSocketCloseEventArgs : DiscordEventArgs
Properties
| Improve this Doc View SourceCode
Gets the WebSocket close code.
Declaration
public int Code { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Reason
Gets the WebSocket close reason.
Declaration
public string Reason { get; }
Property Value
Type | Description |
---|---|
System.String |
Remote
Gets whether the termination was initiated by the remote party (i.e. Discord).
Declaration
public bool Remote { get; }
Property Value
Type | Description |
---|---|
System.Boolean |