resolve
open fun resolve(info: SlashCommandInfo, 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
info
The data of the command being executed
event
The corresponding event, could be a SlashCommandInteractionEvent or a CommandAutoCompleteInteractionEvent
option Mapping
The OptionMapping to be resolved