Skip to main content

Function: parseConstructorPreConditionsRequiredUserPermissions()

parseConstructorPreConditionsRequiredUserPermissions(requiredUserPermissions: undefined | PermissionResolvable, preconditionContainerArray: PreconditionContainerArray): void

Appends the UserPermissions precondition when Command.Options.requiredUserPermissions resolves to a non-zero bitfield.

Parameters

ParameterTypeDescription
requiredUserPermissionsundefined | PermissionResolvableThe required user permissions.
preconditionContainerArrayPreconditionContainerArrayThe precondition container array to append the precondition to.

Returns

void

Defined in

projects/framework/src/lib/precondition-resolvers/userPermissions.ts:11