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 Parameter | Default type |
---|---|
PreParseReturn extends Args | Args |
Options extends SubcommandOptions | SubcommandOptions |
Parameters
Parameter | Type | Description |
---|---|---|
options | ParseSubcommandConstructorPreConditionsCooldownParameters <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