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
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
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
status
> readonly status: 403 = 403
Defined in: teams/src/teams.ts:50