Annotation Interface CommandConfig


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface CommandConfig

Used to configure the registration of commands.

Interaction methods annotated with CommandConfig will use the configured values of this annotation when registering. Interaction classes annotated with CommandConfig will apply the configured values of this annotation to every method, if and only if no annotation is present at method level. If the CommandConfig annotation is neither present at the class level nor the method level, the global CommandConfig will be used instead.

In other words the hierarchy is as following: 2. ReplyConfig method annotation 3. ReplyConfig class annotation 4. global CommandConfig provided in JDACBuilder