mirror of https://github.com/sgoudham/Enso-Bot.git
Rename @Command to @SlashCommand & Add Micronaut Annotations
parent
7f116d9c21
commit
0ddb21eec0
@ -1,15 +1,19 @@
|
|||||||
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 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;
|
||||||
|
|
||||||
|
@Singleton
|
||||||
|
@Introspected
|
||||||
@Qualifier
|
@Qualifier
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Command {
|
public @interface SlashCommand {
|
||||||
String name();
|
String name();
|
||||||
String description();
|
String description();
|
||||||
boolean isVisible();
|
boolean isVisible();
|
Loading…
Reference in New Issue