Interface CommandContext<M>

Type Parameters

  • M

Hierarchy

  • CommandContext

Properties

args: Args

The lexure.Args instance, from parsing the command + arguments.

command: string

The name of the command that was received.

commands: ReadonlyMap<string, CommandOptions & M>

A map of all the available commands

guild: undefined | Guild

The guild the channel was in. Is undefined if the message was a DM.

message: Message

The Message object

prefix: string

The prefix for the current guild

reply: ((message: Partial<CreateMessageParams>) => Promise<Message>)

Type declaration

    • (message: Partial<CreateMessageParams>): Promise<Message>
    • Helper method for quickly replying to a message.

      Parameters

      • message: Partial<CreateMessageParams>

      Returns Promise<Message>

Generated using TypeDoc