resolve Suspend
open suspend fun resolveSuspend(option: UserContextCommandOption, event: UserContextInteractionEvent): R?(source)
Returns a resolved object from this user 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: UserCommandInfo, event: UserContextInteractionEvent): R?(source)
Deprecated
Replaced UserCommandInfo with UserContextCommandOption