CommandEventArgs
data class CommandEventArgs( val msgid: Int, val command: Command, val context: ICommandContext) : EventArgs
Content copied to clipboard
CommandEventArgs
is a data class that contains a Command and the associated ICommandContext.
Parameters
command
the command data
context
ICommandContext that can be used to acknowledge this command
Constructors
Link copied to clipboard
fun CommandEventArgs( msgid: Int, command: Command, context: ICommandContext)
Content copied to clipboard
Functions
Link copied to clipboard
Acknowledge that the command has been executed
suspend fun acknowledge(action: (cmd: Command, ctx: ICommandContext) -> Unit): Boolean
Content copied to clipboard
Execute the action and respond with an acknowledgement or error at the appropriate time given the CommandAcknowledgementType of the command