Enum GatewayDisconnectReason
- Namespace
- DSharpPlus.Net.Gateway
- Assembly
- DSharpPlus.dll
Specifies why the gateway disconnected.
public enum GatewayDisconnectReason
- Extension Methods
Fields
ConnectionSevered = 7The internet connection was severed.
InternalError = 5An internal error was encountered and the gateway needs to restart. Orchestrators should attempt to reconnect.
IrrecoverableCloseCode = 2An irrecoverable close code was encountered. Orchestrators should not attempt to reconnect.
RecoverableCloseCode = 3A recoverable close code was encountered. Orchestrators may attempt to reconnect.
SessionInvalidated = 6The session was invalidated and needs to be restarted.
UnknownError = 0An unknown error occurred.
UserRequested = 1Shutdown was explicitly requested by the user.
Zombied = 4The connection zombied. Orchestrators may attempt to reconnect.