Uses of Record Class
com.github.kaktushose.jda.commands.definitions.interactions.command.OptionDataDefinition.ConstraintDefinition
Package
Description
Definitions
that represent a command interaction.Factory classes for generating error embeds.
-
Uses of OptionDataDefinition.ConstraintDefinition in com.github.kaktushose.jda.commands.definitions.interactions.command
Modifier and TypeMethodDescriptionOptionDataDefinition.ConstraintDefinition.build
(@NotNull Validator validator, @NotNull Annotation annotation) Builds a newOptionDataDefinition.ConstraintDefinition
.Modifier and TypeMethodDescriptionOptionDataDefinition.constraints()
Returns the value of theconstraints
record component.ModifierConstructorDescriptionOptionDataDefinition
(@NotNull Class<?> type, boolean optional, boolean autoComplete, @Nullable String defaultValue, @NotNull String name, @NotNull String description, @NotNull SequencedCollection<Command.Choice> choices, @NotNull Collection<OptionDataDefinition.ConstraintDefinition> constraints) Creates an instance of aOptionDataDefinition
record class. -
Uses of OptionDataDefinition.ConstraintDefinition in com.github.kaktushose.jda.commands.embeds.error
Modifier and TypeMethodDescription@NotNull MessageCreateData
DefaultErrorMessageFactory.getConstraintFailedMessage
(@NotNull ErrorMessageFactory.ErrorContext context, @NotNull OptionDataDefinition.ConstraintDefinition constraint) @NotNull MessageCreateData
ErrorMessageFactory.getConstraintFailedMessage
(@NotNull ErrorMessageFactory.ErrorContext context, @NotNull OptionDataDefinition.ConstraintDefinition constraint) Gets aMessageCreateData
to send when a parameter constraint fails.@NotNull MessageCreateData
JsonErrorMessageFactory.getConstraintFailedMessage
(@NotNull ErrorMessageFactory.ErrorContext context, @NotNull OptionDataDefinition.ConstraintDefinition constraint)