resolve

open fun resolve(variation: TextCommandVariation, event: MessageReceivedEvent, args: Array<String?>): R?(source)

Returns a resolved object from this text command.

If this returns null, and the parameter is required, i.e., not nullable or optional, then the handler goes to the next command variation.

See the @JDATextCommandVariation documentation for more details about text command variations.

Parameters

variation

The text command variation being executed

event

The corresponding event

args

The arguments of this parameter, extracted with pattern