resolve
open fun resolve(option: SlashCommandOption, event: CommandInteractionPayload, optionMapping: OptionMapping): R?(source)
Returns a resolved object for this OptionMapping.
If this returns null, and the parameter is required, i.e., not nullable or optional, then the interaction is ignored, and you should reply if this is a SlashCommandInteractionEvent.
If the interaction is not replied to, the handler sends an unresolvable option error message.
Parameters
option
The option currently being resolved
event
The corresponding event, could be a SlashCommandInteractionEvent or a CommandAutoCompleteInteractionEvent
optionMapping
The OptionMapping to be resolved