Options
All
  • Public
  • Public/Protected
  • All
Menu

This is the more complicated and more direct way of setting state, look at SimpleMultipartExampleCommand for simpler way to manage state.

Hierarchy

Constructors

Methods

Constructors

constructor

Parameters

Returns MultipartExampleCommand

Methods

check

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

Parameters

  • message: Message

Returns Promise<boolean>

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

execute

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

Parameters

  • message: Message

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.