Table of Contents

Class DisconnectEventArgs

Namespace
NetCord.Gateway
Assembly
NetCord.dll
public class DisconnectEventArgs
Inheritance
DisconnectEventArgs
Inherited Members

Constructors

DisconnectEventArgs(WebSocketCloseStatus?, string?, bool)

public DisconnectEventArgs(WebSocketCloseStatus? closeStatus, string? closeStatusDescription, bool reconnect)

Parameters

closeStatus WebSocketCloseStatus?
closeStatusDescription string
reconnect bool

Properties

CloseStatus

The close status of the disconnect.

public WebSocketCloseStatus? CloseStatus { get; }

Property Value

WebSocketCloseStatus?

CloseStatusDescription

The close status description of the disconnect.

public string? CloseStatusDescription { get; }

Property Value

string

Reconnect

Whether the client will attempt to reconnect after the disconnect.

public bool Reconnect { get; }

Property Value

bool