Class: abstract
PatternCommand
Extends
Command
<Args
,Options
>
Constructors
new PatternCommand()
new PatternCommand(
context
:LoaderContext
,options
:PatternCommandOptions
):PatternCommand
Parameters
Parameter | Type |
---|---|
context | LoaderContext |
options | PatternCommandOptions |
Returns
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
Parameter | Type | Description |
---|---|---|
message | Message <boolean > | The message that triggered the pattern command. |
Returns
unknown
Overrides
Command.messageRun