Skip to main content

Interface: PatternCommandOptions

Extends

  • Options

Properties

chance?

optional chance: number

The chance that the pattern command is triggered.

Default

100

Source

lib/structures/PatternCommand.ts:37


matchFullName?

optional matchFullName: boolean

If true it will only trigger on full matches (for example, explore won't trigger lore) Note: It will only change the behavior of the command's name and not for the command's aliasses

Default

false

Source

lib/structures/PatternCommand.ts:48


weight?

optional weight: number

The matching weight of the command.

Default

5

Source

lib/structures/PatternCommand.ts:42