Record Class Argument

java.lang.Object
java.lang.Record
de.chojo.jdautil.interactions.slash.Argument

public record Argument(OptionType type, String name, String description, boolean required, boolean autoComplete, @NotNull Consumer<OptionData> min, @NotNull Consumer<OptionData> max) extends Record
  • Constructor Details

    • Argument

      public Argument(OptionType type, String name, String description, boolean required, boolean autoComplete, @NotNull @NotNull Consumer<OptionData> min, @NotNull @NotNull Consumer<OptionData> max)
      Creates an instance of a Argument record class.
      Parameters:
      type - the value for the type record component
      name - the value for the name record component
      description - the value for the description record component
      required - the value for the required record component
      autoComplete - the value for the autoComplete record component
      min - the value for the min record component
      max - the value for the max record component
  • Method Details