Skip to main content

Interface: CommandContext

Hierarchy

  • Record<PropertyKey, unknown>

    โ†ณ CommandContext

Properties

commandName

โ€ข commandName: string

The alias used to run this command.

Defined in

projects/framework/src/lib/structures/Command.ts:523


commandPrefix

โ€ข commandPrefix: string

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

Defined in

projects/framework/src/lib/structures/Command.ts:528


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/structures/Command.ts:519