Annotation Interface Choices


@Target(PARAMETER) @Retention(RUNTIME) public @interface Choices
Annotation used to add choices to parameters.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the choices of a parameter.
  • Element Details

    • value

      String[] value
      Returns the choices of a parameter. This value will only be used for slash commands.
      Returns:
      the choices of the parameter