added Command annotations and OptionType enum
This commit is contained in:
parent
14f9448ba4
commit
aaa2785d37
@ -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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user