ICommandContext

interface ICommandContext

Contains actions that can be taken in response to a command

Functions

Link copied to clipboard
abstract suspend fun acknowledge(): Boolean

Acknowledge that the command has been executed

Link copied to clipboard
open suspend fun error(errorInfo: IMessageError): Boolean
abstract suspend fun error(status: Long, message: String): Boolean

Respond to the command with an error

Properties

Link copied to clipboard
abstract val commandId: String

ID of the associated command

Link copied to clipboard
abstract val hasExecuted: Boolean

Indicates if the command has already been executed