Class OptionMapping


public class OptionMapping extends Object
Name/Value pair for a CommandInteraction option.

Since values for command options are a union-type you can use this class to coerce the values to the desired target type.
You can use getType() to do dynamic handling as well. Each getter documents the conditions and coercion rules for the specific types.

See Also: