@Target(value=TYPE)
@Retention(value=RUNTIME)
public static @interface JDACommand.Category
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
.
JDACommand.category()
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?> |
location
The target class where the static field is located.
|
java.lang.String |
name
The name of the static field in the
target class that will be the category for the annotated command. |
public abstract java.lang.String name
target class
that will be the category for the annotated command.