Annotation Interface JDACommand.Category

Enclosing class:
JDACommand

@Target(TYPE) @Retention(RUNTIME) public static @interface JDACommand.Category
A helper annotation to assist in location of Category instance.

This will target a static field in the specified class location using reflections, with a matching name.

It is important to remember the target must be a static field and any other attempted inputs will result in errors from the compiler.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The target class where the static field is located.
    The name of the static field in the target class that will be the category for the annotated command.
  • Element Details

    • name

      String name
      The name of the static field in the target class that will be the category for the annotated command.
      Returns:
      The name of the static field in the target class.
    • location

      Class<?> location
      The target class where the static field is located.
      Returns:
      The target class where the static field is located.