LogoRobo.js
Packages@robojs/mock

hasAllPermissions()

Function: hasAllPermissions()

function hasAllPermissions(permissions, ...flags): boolean

Check if a permission bitfield has all of the specified permissions

Parameters

ParameterTypeDescription
permissionsbigintThe permission bitfield
...flagsbigint[]The permission flags to check

Returns

boolean

true if all permissions are set

On this page