resolve
open fun resolve(option: ComponentOption, event: GenericComponentInteractionCreateEvent, arg: String): R?(source)
Returns a resolved object from this component interaction.
If this returns null
, and the parameter is required, i.e., not nullable or optional, the handler is ignored, but the interaction must be acknowledged.
Parameters
option
The option currently being resolved
event
The corresponding event
arg
One of the data passed by the user in IPersistentActionableComponent.bindTo
Deprecated
Added a ComponentOption parameter