Function: parseConstructorPreConditionsCooldown()
parseConstructorPreConditionsCooldown<
P,O>(command:Command<P,O>,cooldownLimit:undefined|number,cooldownDelay:undefined|number,cooldownScope:undefined|BucketScope,cooldownFilteredUsers:undefined|string[],preconditionContainerArray:PreconditionContainerArray):void
Defined in: projects/framework/src/lib/precondition-resolvers/cooldown.ts:17
Appends the Cooldown precondition when Command.Options.cooldownLimit and
Command.Options.cooldownDelay are both non-zero.
Type Parameters
| Type Parameter |
|---|
P |
O extends CommandOptions |
Parameters
| Parameter | Type | Description |
|---|---|---|
command | Command<P, O> | The command to parse cooldowns for. |
cooldownLimit | undefined | number | The cooldown limit to use. |
cooldownDelay | undefined | number | The cooldown delay to use. |
cooldownScope | undefined | BucketScope | The cooldown scope to use. |
cooldownFilteredUsers | undefined | string[] | The cooldown filtered users to use. |
preconditionContainerArray | PreconditionContainerArray | The precondition container array to append the precondition to. |
Returns
void