Skip to main content

Class: CortexJoinRefusedError

The join gate refused a participant token because the player is banned (temp_ban / perm_ban). Thrown by project.participants.issueToken(); sanction is the ban that keeps the player out (the longest one), so the backend can tell the player until when.

Extends​

Constructors​

new CortexJoinRefusedError()​

new CortexJoinRefusedError(message, sanction): CortexJoinRefusedError

Parameters​

ParameterTypeDescription
messagestring-
sanctionRecord<string, unknown>The ban, as the API's SanctionResponse

Returns​

CortexJoinRefusedError

Overrides​

CortexError.constructor

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/errors.ts:69

Properties​

PropertyModifierTypeDescriptionInherited fromDefined in
details?readonlyunknown-CortexError.detailsodin-transcription-service/packages/cortex-typescript-sdk/src/errors.ts:11
sanctionreadonlyRecord<string, unknown>The ban, as the API's SanctionResponse-odin-transcription-service/packages/cortex-typescript-sdk/src/errors.ts:72
statusCode?readonlynumber-CortexError.statusCodeodin-transcription-service/packages/cortex-typescript-sdk/src/errors.ts:10