mirror of https://github.com/sgoudham/Enso-Bot.git
Update and add more annotations
parent
118a762d00
commit
68b65fce4f
@ -0,0 +1,16 @@
|
||||
package me.goudham.command.annotation;
|
||||
|
||||
import jakarta.inject.Qualifier;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Qualifier
|
||||
@Target(ElementType.ANNOTATION_TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface SubCommand {
|
||||
String name();
|
||||
String description();
|
||||
Option[] options() default {};
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package me.goudham.command.annotation;
|
||||
|
||||
import jakarta.inject.Qualifier;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Qualifier
|
||||
@Target(ElementType.ANNOTATION_TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface SubCommandGroup {
|
||||
String name();
|
||||
String description();
|
||||
SubCommand[] subCommands() default {};
|
||||
}
|
Loading…
Reference in New Issue