Options
All
  • Public
  • Public/Protected
  • All
Menu

Runnable based on if provided message is a trigger.

Hierarchy

Methods

Abstract check

  • check(message: Message): Promise<boolean>

Checks if this command should be run.

Parameters

  • message: Message

    Message to check if command should be executed.

Returns Promise<boolean>

If this command should be executed.

exclusive

  • exclusive(): boolean

If other commands should not be parsed/executed if this command is triggered.

  • Note: Does not stop higher priority commands.

Returns boolean

Whether or not this command is exclusive (i.e. stops other commands from running, doesn't stop higher priority commands).

Abstract execute

  • execute(message: Message): Promise<void>

Command to run if parsed message passes.

Parameters

  • message: Message

    Message to respond or react to.

Returns Promise<void>

priority

  • priority(): number

Where the command should be sorted relative to other commands.

Returns number

Priority of command, with higher number being higher priority.

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.