Record Class OptionDataDefinition

java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.definitions.interactions.command.OptionDataDefinition
Record Components:
declaredType - the Class declaredType of the command option
resolvedType - the type after wrapping primitive types and unwrapping Optional
optionType - the OptionType of the command option
optional - whether this command option is optional
autoComplete - he AutoCompleteDefinition for this option or null if no auto complete was defined
name - the name of the command option
description - the description of the command option
choices - a SequencedCollection of possible Command.Choices for this command option
constraints - a Collection of OptionDataDefinition.ConstraintDefinitions of this command option
All Implemented Interfaces:
Definition, JDAEntity<OptionData>

public record OptionDataDefinition(Class<?> declaredType, Class<?> resolvedType, OptionType optionType, boolean optional, @Nullable AutoCompleteDefinition autoComplete, String name, String description, SequencedCollection<Command.Choice> choices, Collection<OptionDataDefinition.ConstraintDefinition> constraints) extends Record implements Definition, JDAEntity<OptionData>
Representation of a slash command option.