Table of Contents

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 = 4005

Attempted to authenticate to an already authenticated session.

AuthenticationFailed = 4004

The provided token is incorrect.

DecodeError = 4002

A payload could not be decoded.

DisallowedIntents = 4014

Requested an intent the bot is not authorized for.

Empty = 1005

No reason specified.

GoingAway = 1001

The gateway server is shutting down.

InvalidAPIVersion = 4012

Specified an invalid API version when connecting.

InvalidIntents = 4013

Sent an invalid intent.

InvalidSequence = 4007

Invalid sequence number sent in attempting to resume.

InvalidShard = 4010

The provided shard info was invalid.

NormalClosure = 1000

The websocket was regularly closed.

NotAuthenticated = 4003

The session is not currently authenticated.

Ratelimited = 4008

Attempted to send more than 120 events per second to the remote websocket.

SessionTimedOut = 4009

The session timed out.

ShardingRequired = 4011

Attempted to connect with insufficient shards.

Timeout = 3008

The connection timed out.

UnknownError = 4000

An unknown error occurred.

UnknownOpcode = 4001

An unknown payload was sent.