Skip to content

Enum RPC_ERROR_CODE

🏷️ Enum Members

RPC_CAPTURE_SHORTCUT_ALREADY_LISTENING

ts
RPC_CAPTURE_SHORTCUT_ALREADY_LISTENING: 5004

You tried to capture more than one shortcut key at once.

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

RPC_GET_GUILD_TIMEOUT

ts
RPC_GET_GUILD_TIMEOUT: 5002

An asynchronous GET_GUILD command timed out.

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

RPC_INVALID_CHANNEL

ts
RPC_INVALID_CHANNEL: 4005

Invalid channel ID specified.

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

RPC_INVALID_CLIENT_ID

ts
RPC_INVALID_CLIENT_ID: 4007

An invalid OAuth2 application ID was used to authorize or authenticate with.

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

RPC_INVALID_COMMAND

ts
RPC_INVALID_COMMAND: 4002

Invalid command name specified.

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

RPC_INVALID_EVENT

ts
RPC_INVALID_EVENT: 4004

Invalid event name specified.

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

RPC_INVALID_GUILD

ts
RPC_INVALID_GUILD: 4003

Invalid guild ID specified.

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

RPC_INVALID_ORIGIN

ts
RPC_INVALID_ORIGIN: 4008

An invalid OAuth2 application origin was used to authorize or authenticate with.

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

RPC_INVALID_PAYLOAD

ts
RPC_INVALID_PAYLOAD: 4000

You sent an invalid payload.

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

RPC_INVALID_PERMISSION

ts
RPC_INVALID_PERMISSION: 4006

You lack permissions to access the given resource.

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

RPC_INVALID_TOKEN

ts
RPC_INVALID_TOKEN: 4009

An invalid OAuth2 token was used to authorize or authenticate with.

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

RPC_INVALID_USER

ts
RPC_INVALID_USER: 4010

The specified user ID was invalid.

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

RPC_OAUTH2_ERROR

ts
RPC_OAUTH2_ERROR: 5000

A standard OAuth2 error occurred; check the data object for the OAuth2 error details.

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

RPC_SELECT_CHANNEL_TIMEOUT

ts
RPC_SELECT_CHANNEL_TIMEOUT: 5001

An asynchronous SELECT_TEXT_CHANNEL/SELECT_VOICE_CHANNEL command timed out.

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

RPC_SELECT_VOICE_FORCE_REQUIRED

ts
RPC_SELECT_VOICE_FORCE_REQUIRED: 5003

You tried to join a user to a voice channel but the user was already in one.

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

RPC_UNKNOWN_ERROR

ts
RPC_UNKNOWN_ERROR: 1000

An unknown error occurred.

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

Released under the MIT License.