Skip to content

basalt / teams/src / TeamRoleNotGrantableError

Class: TeamRoleNotGrantableError ​

Defined in: teams/src/teams.ts:49

The role is not part of the ranked hierarchy (roleRank) and was not listed in grantableRoles, so an acting user may not grant it.

Extends ​

Constructors ​

Constructor ​

> new TeamRoleNotGrantableError(role): TeamRoleNotGrantableError

Defined in: teams/src/teams.ts:51

Parameters ​

role ​

string

Returns ​

TeamRoleNotGrantableError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 403 = 403

Defined in: teams/src/teams.ts:50

Released under the MIT License.