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