Skip to main content

Function: parseConstructorPreConditionsRequiredClientPermissions()

parseConstructorPreConditionsRequiredClientPermissions(requiredClientPermissions: undefined | PermissionResolvable, preconditionContainerArray: PreconditionContainerArray): void

Appends the ClientPermissions precondition when Command.Options.requiredClientPermissions resolves to a non-zero bitfield.

Parameters

ParameterTypeDescription
requiredClientPermissionsundefined | PermissionResolvableThe required client permissions.
preconditionContainerArrayPreconditionContainerArrayThe precondition container array to append the precondition to.

Returns

void

Source

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