Skip to main content

Interface: MessageCommandContext

Extends

  • Record<PropertyKey, unknown>

Properties

commandName

commandName: string

The alias used to run this command.

Source

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

Source

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.

Source

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