Skip to main content

Class: PluginPatternCommandsMessageParseListener

@sapphire/plugin-pattern-commands.PluginPatternCommandsMessageParseListener

Hierarchy

  • Listener<typeof Events.PreMessageParsed>

    PluginPatternCommandsMessageParseListener

Constructors

constructor

new PluginPatternCommandsMessageParseListener(context)

Parameters

NameType
contextPieceContext

Overrides

Listener<typeof Events.PreMessageParsed\>.constructor

Defined in

projects/plugins/packages/pattern-commands/src/listeners/PluginMessageParse.ts:10

Properties

requiredPermissions

Private Readonly requiredPermissions: Readonly<BitField<PermissionString, bigint>>

Defined in

projects/plugins/packages/pattern-commands/src/listeners/PluginMessageParse.ts:9

Methods

canRunInChannel

Private canRunInChannel(message): Promise<boolean>

Parameters

NameType
messageMessage<boolean>

Returns

Promise<boolean>

Defined in

projects/plugins/packages/pattern-commands/src/listeners/PluginMessageParse.ts:70


run

run(message): Promise<void>

Parameters

NameType
messageMessage<boolean>

Returns

Promise<void>

Overrides

Listener.run

Defined in

projects/plugins/packages/pattern-commands/src/listeners/PluginMessageParse.ts:14