Class AnnotatedCommand
java.lang.Object
com.github.alex1304.ultimategdbot.api.command.annotated.AnnotatedCommand
- All Implemented Interfaces:
Command
public class AnnotatedCommand extends Object implements Command
Command implemented via annotations.
-
Method Summary
Modifier and Type Method Description Set<String>getAliases()Gets the aliases for this command.CommandDocumentationgetDocumentation()Gets the documentation of the command.PermissionLevelgetPermissionLevel()Gets the permission level required to execute this command.ScopegetScope()Gets the type of channels this command is allowed for use in.reactor.core.publisher.Mono<Void>run(Context ctx)Defines the action of the commandStringtoString()
-
Method Details
-
run
Description copied from interface:CommandDefines the action of the command -
getAliases
Description copied from interface:CommandGets the aliases for this command.- Specified by:
getAliasesin interfaceCommand- Returns:
- the set of aliases
-
getDocumentation
Description copied from interface:CommandGets the documentation of the command.- Specified by:
getDocumentationin interfaceCommand- Returns:
- the documentation
-
getPermissionLevel
Description copied from interface:CommandGets the permission level required to execute this command.- Specified by:
getPermissionLevelin interfaceCommand- Returns:
- the permission level
-
getScope
Description copied from interface:CommandGets the type of channels this command is allowed for use in. -
toString
-