Table of Contents

Enum GatewayDisconnectReason

Namespace
DSharpPlus.Net.Gateway
Assembly
DSharpPlus.dll

Specifies why the gateway disconnected.

public enum GatewayDisconnectReason
Extension Methods

Fields

ConnectionSevered = 7

The internet connection was severed.

InternalError = 5

An internal error was encountered and the gateway needs to restart. Orchestrators should attempt to reconnect.

IrrecoverableCloseCode = 2

An irrecoverable close code was encountered. Orchestrators should not attempt to reconnect.

RecoverableCloseCode = 3

A recoverable close code was encountered. Orchestrators may attempt to reconnect.

SessionInvalidated = 6

The session was invalidated and needs to be restarted.

UnknownError = 0

An unknown error occurred.

UserRequested = 1

Shutdown was explicitly requested by the user.

Zombied = 4

The connection zombied. Orchestrators may attempt to reconnect.