resolve Suspend
open suspend fun resolveSuspend(option: MessageContextCommandOption, event: MessageContextInteractionEvent): R?(source)
Returns a resolved object from this message context interaction.
If this returns null
, and the parameter is required, i.e., not nullable or optional, then the handler will throw.
Parameters
option
The option currently being resolved
event
The corresponding event
open suspend fun resolveSuspend(info: MessageCommandInfo, event: MessageContextInteractionEvent): R?(source)
Deprecated
Replaced MessageCommandInfo with MessageContextCommandOption