Add @Introspected & @Target

java-rewrite
Hammy 3 years ago
parent 0484952b4a
commit e4a5adf03e

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

@ -1,15 +1,15 @@
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;
@Singleton
@Qualifier
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SubCommand {
String commandParent() default "";
String name();
String description();
Option[] options() default {};

@ -1,5 +1,6 @@
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,6 +10,7 @@ import java.lang.annotation.Target;
@Qualifier
@Singleton
@Introspected
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SubCommandGroup {

Loading…
Cancel
Save