Skip to content

Function: seniorRole() ​

ts
function seniorRole<R>(roles): R | null;

Defined in: memberGroups.ts:48

the most senior of a member's roles, or null when they hold none

Type Parameters ​

Type Parameter
R extends RoleLike

Parameters ​

ParameterType
rolesreadonly R[] | undefined

Returns ​

R | null

Released under the GNU Affero General Public License v3.0.