Skip to main content

Interface: ParseSubcommandConstructorPreConditionsCooldownParameters<PreParseReturn, Options>

Defined in: projects/plugins/packages/subcommands/src/lib/precondition-resolvers/subcommandCooldown.ts:7

The options for adding this subcommand cooldown precondition

Type Parameters

Type ParameterDefault type
PreParseReturn extends ArgsArgs
Options extends OptionsOptions

Properties

cooldownDelay

cooldownDelay: undefined | number

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

The cooldown delay to use.


cooldownFilteredUsers

cooldownFilteredUsers: undefined | string[]

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

The cooldown filtered users to use.


cooldownLimit

cooldownLimit: undefined | number

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

The cooldown limit to use.


cooldownScope

cooldownScope: undefined | BucketScope

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

The cooldown scope to use.


preconditionContainerArray

preconditionContainerArray: PreconditionContainerArray

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

The precondition container array to append the precondition to.


subcommand

subcommand: Subcommand<PreParseReturn, Options>

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

The command to parse cooldowns for.


subcommandGroupName?

optional subcommandGroupName: string

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

The group this precondition is for, if any.


subcommandMethodName

subcommandMethodName: string

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

The name this precondition is for.