Skip to content

Enum RPC_CLOSE_CODE

🏷️ Enum Members

RPC_CLOSE_ABNORMAL

ts
RPC_CLOSE_ABNORMAL: 1006

Defined in: packages/discord-rpc/structures/Transport.ts:8

RPC_CLOSE_INVALID_CLIENT_ID

ts
RPC_CLOSE_INVALID_CLIENT_ID: 4000

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

Defined in: packages/discord-rpc/structures/Transport.ts:13

RPC_CLOSE_INVALID_ENCODING

ts
RPC_CLOSE_INVALID_ENCODING: 4005

The encoding specified in the connection string was not valid

Defined in: packages/discord-rpc/structures/Transport.ts:33

RPC_CLOSE_INVALID_ORIGIN

ts
RPC_CLOSE_INVALID_ORIGIN: 4001

You connected to the RPC server with an invalid origin.

Defined in: packages/discord-rpc/structures/Transport.ts:17

RPC_CLOSE_INVALID_VERSION

ts
RPC_CLOSE_INVALID_VERSION: 4004

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

Defined in: packages/discord-rpc/structures/Transport.ts:29

RPC_CLOSE_NORMAL

ts
RPC_CLOSE_NORMAL: 1000

Defined in: packages/discord-rpc/structures/Transport.ts:6

RPC_CLOSE_RATE_LIMITED

ts
RPC_CLOSE_RATE_LIMITED: 4002

You are being rate limited.

Defined in: packages/discord-rpc/structures/Transport.ts:21

RPC_CLOSE_TOKEN_REVOKED

ts
RPC_CLOSE_TOKEN_REVOKED: 4003

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

Defined in: packages/discord-rpc/structures/Transport.ts:25

RPC_CLOSE_UNSUPPORTED

ts
RPC_CLOSE_UNSUPPORTED: 1003

Defined in: packages/discord-rpc/structures/Transport.ts:7

Released under the MIT License.