Enum GatewayCloseCode
- Namespace
- DSharpPlus.Net.Gateway
- Assembly
- DSharpPlus.dll
Represents standard websocket close statuses as well as Discord-specific close codes.
public enum GatewayCloseCode
- Extension Methods
Fields
AlreadyAuthenticated = 4005Attempted to authenticate to an already authenticated session.
AuthenticationFailed = 4004The provided token is incorrect.
DecodeError = 4002A payload could not be decoded.
DisallowedIntents = 4014Requested an intent the bot is not authorized for.
Empty = 1005No reason specified.
GoingAway = 1001The gateway server is shutting down.
InvalidAPIVersion = 4012Specified an invalid API version when connecting.
InvalidIntents = 4013Sent an invalid intent.
InvalidSequence = 4007Invalid sequence number sent in attempting to resume.
InvalidShard = 4010The provided shard info was invalid.
NormalClosure = 1000The websocket was regularly closed.
NotAuthenticated = 4003The session is not currently authenticated.
Ratelimited = 4008Attempted to send more than 120 events per second to the remote websocket.
SessionTimedOut = 4009The session timed out.
ShardingRequired = 4011Attempted to connect with insufficient shards.
Timeout = 3008The connection timed out.
UnknownError = 4000An unknown error occurred.
UnknownOpcode = 4001An unknown payload was sent.