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
option Mapping
The OptionMapping to be resolved
open fun resolve(info: SlashCommandInfo, event: CommandInteractionPayload, optionMapping: OptionMapping): R?(source)
Deprecated
Replaced SlashCommandInfo with SlashCommandOption