cleanup commands
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 39s
This commit is contained in:
50
src/main/java/cc/fascinated/bat/command/CommandInfo.java
Normal file
50
src/main/java/cc/fascinated/bat/command/CommandInfo.java
Normal file
@ -0,0 +1,50 @@
|
||||
package cc.fascinated.bat.command;
|
||||
|
||||
import net.dv8tion.jda.api.Permission;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
public @interface CommandInfo {
|
||||
/**
|
||||
* The name of the command
|
||||
*
|
||||
* @return the name of the command
|
||||
*/
|
||||
String name();
|
||||
|
||||
/**
|
||||
* The description of the command
|
||||
*
|
||||
* @return the description of the command
|
||||
*/
|
||||
String description() default "No description provided.";
|
||||
|
||||
/**
|
||||
* If the command is guild only
|
||||
*
|
||||
* @return if the command is guild only
|
||||
*/
|
||||
boolean guildOnly() default true;
|
||||
|
||||
/**
|
||||
* The required permissions for the command
|
||||
*
|
||||
* @return the required permissions for the command
|
||||
*/
|
||||
Permission[] requiredPermissions() default {};
|
||||
|
||||
/**
|
||||
* The category of the command
|
||||
*
|
||||
* @return the category of the command
|
||||
*/
|
||||
Category category() default Category.GENERAL;
|
||||
}
|
Reference in New Issue
Block a user