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