Update command annotations

java-rewrite
Hammy 3 years ago
parent 6be86bca2f
commit 67a2426502

@ -1,6 +1,5 @@
package me.goudham.command.annotation;
import io.micronaut.core.annotation.Introspected;
import jakarta.inject.Qualifier;
import jakarta.inject.Singleton;
import java.lang.annotation.ElementType;
@ -9,7 +8,6 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Singleton
@Introspected
@Qualifier
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@ -17,7 +15,7 @@ public @interface SlashCommand {
String name();
String description();
boolean isVisible();
SubCommandGroup[] subCommandGroups() default {};
SubCommand[] subCommands() default {};
String[] subCommandGroups() default {};
String[] subCommands() default {};
Option[] options() default {};
}

@ -1,15 +1,15 @@
package me.goudham.command.annotation;
import jakarta.inject.Qualifier;
import java.lang.annotation.ElementType;
import jakarta.inject.Singleton;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Singleton
@Qualifier
@Target(ElementType.ANNOTATION_TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SubCommand {
String commandParent() default "";
String name();
String description();
Option[] options() default {};

@ -1,16 +1,18 @@
package me.goudham.command.annotation;
import jakarta.inject.Qualifier;
import jakarta.inject.Singleton;
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)
@Singleton
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SubCommandGroup {
String parent();
String name();
String description();
SubCommand[] subCommands() default {};
}

Loading…
Cancel
Save