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 parameterValue
PreParseReturn extends ArgsArgs
Options extends SubcommandOptionsSubcommandOptions

Parameters

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

Returns

void

Source

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