Skip to main content

Interface: ParseSubcommandConstructorPreConditionsCooldownParameters<PreParseReturn, Options>

The options for adding this subcommand cooldown precondition

Type Parameters

Type ParameterDefault type
PreParseReturn extends ArgsArgs
Options extends OptionsOptions

Properties

cooldownDelay

cooldownDelay: undefined | number

The cooldown delay to use.

Defined in

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


cooldownFilteredUsers

cooldownFilteredUsers: undefined | string[]

The cooldown filtered users to use.

Defined in

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


cooldownLimit

cooldownLimit: undefined | number

The cooldown limit to use.

Defined in

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


cooldownScope

cooldownScope: undefined | BucketScope

The cooldown scope to use.

Defined in

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


preconditionContainerArray

preconditionContainerArray: PreconditionContainerArray

The precondition container array to append the precondition to.

Defined in

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


subcommand

subcommand: Subcommand<PreParseReturn, Options>

The command to parse cooldowns for.

Defined in

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


subcommandGroupName?

optional subcommandGroupName: string

The group this precondition is for, if any.

Defined in

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


subcommandMethodName

subcommandMethodName: string

The name this precondition is for.

Defined in

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