Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discord_rpc_deno/mod.ts>RPC_CLOSE_CODE

port of @xhayper/discord-rpc to deno
Latest
enum RPC_CLOSE_CODE
import { RPC_CLOSE_CODE } from "https://deno.land/x/discord_rpc_deno@v1.1.4/mod.ts";

Members

RPC_CLOSE_ABNORMAL = 1006
RPC_CLOSE_INVALID_CLIENT_ID = 4000

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

RPC_CLOSE_INVALID_ENCODING = 4005

The encoding specified in the connection string was not valid

RPC_CLOSE_INVALID_ORIGIN = 4001

You connected to the RPC server with an invalid origin.

RPC_CLOSE_INVALID_VERSION = 4004

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

RPC_CLOSE_NORMAL = 1000
RPC_CLOSE_RATE_LIMITED = 4002

You are being rate limited.

RPC_CLOSE_TOKEN_REVOKED = 4003

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

RPC_CLOSE_UNSUPPORTED = 1003