Skip to main content

Class: abstract PatternCommand

Extends

Constructors

new PatternCommand()

new PatternCommand(context: LoaderContext, options: PatternCommandOptions): PatternCommand

Parameters

ParameterType
contextLoaderContext
optionsPatternCommandOptions

Returns

PatternCommand

Overrides

Command<Args, PatternCommand.Options>.constructor

Source

lib/structures/PatternCommand.ts:8

Properties

chance

readonly chance: number

Source

lib/structures/PatternCommand.ts:5


matchFullName

readonly matchFullName: boolean

Source

lib/structures/PatternCommand.ts:7


weight

readonly weight: number

Source

lib/structures/PatternCommand.ts:6

Methods

messageRun()

abstract messageRun(message: Message<boolean>): unknown

Executes the pattern command's logic.

Parameters

ParameterTypeDescription
messageMessage<boolean>The message that triggered the pattern command.

Returns

unknown

Overrides

Command.messageRun

Source

lib/structures/PatternCommand.ts:29