Annotation Interface Param


@Target(PARAMETER) @Retention(RUNTIME) public @interface Param
Annotation used to add a name and description to slash command parameters.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the name of the parameter.
    Returns the description of the parameter.
  • Element Details

    • value

      String value
      Returns the description of the parameter. This value will only be used for slash commands.
      Returns:
      the description of the parameter
      Default:
      ""
    • name

      String name
      Returns the name of the parameter. Use the compiler flag -parameters to have the parameter name resolved at runtime making this field redundant.
      Returns:
      the name of the parameter
      Default:
      ""