enum RPCCloseEventCodes

external
export declare enum RPCCloseEventCodes

See also: https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-close-event-codes

Members

external
CloseAbnormal = 1006

external
CloseNormal = 1000

external
CloseUnsupported = 1003

external
InvalidClientId = 4000

You connected to the RPC server with an invalid client ID.

external
InvalidEncoding = 4005

The encoding specified in the connection string was not valid.

external
InvalidOrigin = 4001

You connected to the RPC server with an invalid origin.

external
InvalidVersion = 4004

The RPC Server version specified in the connection string was not valid.

external
RateLimited = 4002

You are being rate limited.

external
TokenRevoked = 4003

The OAuth2 token associated with a connection was revoked, get a new one!