resolve Suspend
open suspend fun resolveSuspend(option: TextCommandOption, 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
option
The option currently being resolved
event
The corresponding event
args
The arguments of this parameter, extracted with pattern
open suspend fun resolveSuspend(variation: TextCommandVariation, event: MessageReceivedEvent, args: Array<String?>): R?(source)
Deprecated
Replaced TextCommandVariation with TextCommandOption