Skip to main content

Interface: PatternCommandOptions

@sapphire/plugin-pattern-commands.PatternCommandOptions

Hierarchy

  • Options

    PatternCommandOptions

Properties

chance

Optional chance: number

The chance that the pattern command is triggered.

default 100

Defined in

projects/plugins/packages/pattern-commands/src/lib/structures/PatternCommand.ts:25


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

Defined in

projects/plugins/packages/pattern-commands/src/lib/structures/PatternCommand.ts:31