Skip to main content

Interface: MessageCommandContext

Extends

  • Record<PropertyKey, unknown>

Properties

commandName

commandName: string

The alias used to run this command.

Defined in

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


commandPrefix

commandPrefix: string

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].

Defined in

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


prefix

prefix: string | RegExp

The prefix used to run this command.

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

Defined in

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