mirror of https://github.com/sgoudham/Enso-Bot.git
Update command annotations
parent
6be86bca2f
commit
67a2426502
@ -1,16 +1,18 @@
|
|||||||
package me.goudham.command.annotation;
|
package me.goudham.command.annotation;
|
||||||
|
|
||||||
import jakarta.inject.Qualifier;
|
import jakarta.inject.Qualifier;
|
||||||
|
import jakarta.inject.Singleton;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
@Qualifier
|
@Qualifier
|
||||||
@Target(ElementType.ANNOTATION_TYPE)
|
@Singleton
|
||||||
|
@Target(ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface SubCommandGroup {
|
public @interface SubCommandGroup {
|
||||||
|
String parent();
|
||||||
String name();
|
String name();
|
||||||
String description();
|
String description();
|
||||||
SubCommand[] subCommands() default {};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue