Function: parseConstructorPreConditionsRequiredUserPermissions()
parseConstructorPreConditionsRequiredUserPermissions(
requiredUserPermissions
:undefined
|PermissionResolvable
,preconditionContainerArray
:PreconditionContainerArray
):void
Appends the UserPermissions
precondition when Command.Options.requiredUserPermissions resolves to a
non-zero bitfield.
Parameters
Parameter | Type | Description |
---|---|---|
requiredUserPermissions | undefined | PermissionResolvable | The required user permissions. |
preconditionContainerArray | PreconditionContainerArray | The precondition container array to append the precondition to. |
Returns
void
Defined in
projects/framework/src/lib/precondition-resolvers/userPermissions.ts:11