resolveSuspend

open suspend fun resolveSuspend(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


open suspend fun resolveSuspend(info: SlashCommandInfo, event: CommandInteractionPayload, optionMapping: OptionMapping): R?(source)

Deprecated

Replaced SlashCommandInfo with SlashCommandOption