call

open suspend override fun call(event: MessageCreateEvent, commandName: String, parser: StringParser, argString: String, skipChecks: Boolean, cache: MutableStringKeyedMap<Any>)

Execute this grouped 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 will search for a subcommand matching the first argument. If a subcommand is found, it will be executed - otherwise, the 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.