Methods
Abstract check
- check(message: Message): Promise<boolean>
Parameters
Returns Promise<boolean>
If this command should be executed.
exclusive
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>
Parameters
Returns Promise<void>
getPersistentState
- getPersistentState(index: Index): Promise<PersistentState>
Parameters
Returns Promise<PersistentState>
getState
- getState(index: Index): Promise<State>
Parameters
Returns Promise<State>
priority
Returns number
Priority of command, with higher number being higher priority.
setPersistentState
- setPersistentState(index: Index, newStateChanges: Partial<PersistentState>): Promise<void>
Parameters
-
index: Index
-
newStateChanges: Partial<PersistentState>
Returns Promise<void>
setState
- setState(index: Index, newStateChanges: Partial<State>): Promise<void>
Parameters
-
index: Index
-
newStateChanges: Partial<State>
Returns Promise<void>
Checks if this command should be run.