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

Defined in

lib/structures/PatternCommand.ts:8

Properties

chance

readonly chance: number

Defined in

lib/structures/PatternCommand.ts:5


matchFullName

readonly matchFullName: boolean

Defined in

lib/structures/PatternCommand.ts:7


weight

readonly weight: number

Defined in

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

Defined in

lib/structures/PatternCommand.ts:29