added Command annotations and OptionType enum

This commit is contained in:
tueem 2024-10-13 14:28:25 +02:00
parent 14f9448ba4
commit aaa2785d37
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB
4 changed files with 36 additions and 0 deletions

@ -0,0 +1,7 @@
package net.tomatentum.marinara.command.annotation;
public @interface RootCommand {
public String name();
public String description() default "";
public CommandOption[] options() default {};
}

@ -0,0 +1,7 @@
package net.tomatentum.marinara.command.annotation;
public @interface SubCommand {
public String name();
public String description() default "";
public CommandOption[] options() default {};
}

@ -0,0 +1,6 @@
package net.tomatentum.marinara.command.annotation;
public @interface SubCommandGroup {
public String name();
public String description() default "";
}

@ -0,0 +1,16 @@
package net.tomatentum.marinara.command.option;
public enum OptionType {
ATTACHMENT,
BOOLEAN,
CHANNEL,
DECIMAL,
LONG,
MENTIONABLE,
ROLE,
STRING,
SUB_COMMAND,
SUB_COMMAND_GROUP,
UNKNOW,
USER
}