call
open suspend fun call(event: MessageCreateEvent, commandName: String, parser: StringParser, argString: String, skipChecks: Boolean = false, cache: MutableStringKeyedMap<Any> = mutableMapOf())
Execute this command, given a MessageCreateEvent.
This function takes a MessageCreateEvent (generated when a message is received), and processes it. The command's checks are invoked and, assuming all of the checks passed, the command body is executed.
If an exception is thrown by the command body, it is caught and a traceback is printed.
Parameters
event
The message creation event.
commandName
The name used to invoke this command.
parser
Parser used to parse the command's arguments, available for further parsing.
argString
Original string containing the command's arguments.
skipChecks
Whether to skip testing the command's checks.