Skip to main content

Function: parseSubcommandConstructorPreConditionsCooldown()

parseSubcommandConstructorPreConditionsCooldown<PreParseReturn, Options>(options: ParseSubcommandConstructorPreConditionsCooldownParameters<PreParseReturn, Options>): void

Appends the PluginSubcommandCooldown precondition when Subcommand.Options.cooldownLimit and Subcommand.Options.cooldownDelay are both non-zero.

Type Parameters

Type ParameterDefault type
PreParseReturn extends ArgsArgs
Options extends SubcommandOptionsSubcommandOptions

Parameters

ParameterTypeDescription
optionsParseSubcommandConstructorPreConditionsCooldownParameters<PreParseReturn, Options>The ParseSubcommandConstructorPreConditionsCooldownParameters for adding this subcommand cooldown precondition

Returns

void

Defined in

projects/plugins/packages/subcommands/src/lib/precondition-resolvers/subcommandCooldown.ts:35