Skip to main content

Namespace: PreconditionResolvers

Index

Functions

FunctionDescription
parseConstructorPreConditionsCooldownAppends the Cooldown precondition when Command.Options.cooldownLimit and Command.Options.cooldownDelay are both non-zero.
parseConstructorPreConditionsNsfwAppends the NSFW precondition if SubcommandMappingMethod.nsfw is set to true.
parseConstructorPreConditionsRequiredClientPermissionsAppends the ClientPermissions precondition when Command.Options.requiredClientPermissions resolves to a non-zero bitfield.
parseConstructorPreConditionsRequiredUserPermissionsAppends the UserPermissions precondition when Command.Options.requiredUserPermissions resolves to a non-zero bitfield.
parseConstructorPreConditionsRunInAppends the RunIn precondition based on the values passed, defaulting to null, which doesn't add a precondition.