Skip to main content

Interface: MessageCommandContext

Defined in: projects/framework/src/lib/types/CommandTypes.ts:198

Extends

  • Record<PropertyKey, unknown>

Indexable

[key: string]: unknown

[key: number]: unknown

[key: symbol]: unknown

Properties

commandName

commandName: string

Defined in: projects/framework/src/lib/types/CommandTypes.ts:208

The alias used to run this command.


commandPrefix

commandPrefix: string

Defined in: projects/framework/src/lib/types/CommandTypes.ts:213

The matched prefix, this will always be the same as MessageCommand.RunContext.prefix if it was a string, otherwise it is the result of doing prefix.exec(content)[0].


prefix

prefix: string | RegExp

Defined in: projects/framework/src/lib/types/CommandTypes.ts:204

The prefix used to run this command.

This is a string for the mention and default prefix, and a RegExp for the regexPrefix.