Class AnnotatedCommand
- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.command.annotated.AnnotatedCommand
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAliases()
Gets the aliases for this command.CommandDocumentation
getDocumentation()
Gets the documentation of the command.PermissionLevel
getMinimumPermissionLevel()
Gets the permission level required to use the command.String
getRequiredPermission()
Gets the name of the permission required to use the command.Scope
getScope()
Gets the scope of this command.reactor.core.publisher.Mono<Void>
run(Context ctx)
Defines the action of the commandString
toString()
-
-
-
Method Detail
-
run
public reactor.core.publisher.Mono<Void> run(Context ctx)
Description copied from interface:Command
Defines the action of the command
-
getAliases
public Set<String> getAliases()
Description copied from interface:Command
Gets the aliases for this command.- Specified by:
getAliases
in interfaceCommand
- Returns:
- the set of aliases
-
getDocumentation
public CommandDocumentation getDocumentation()
Description copied from interface:Command
Gets the documentation of the command.- Specified by:
getDocumentation
in interfaceCommand
- Returns:
- the documentation
-
getRequiredPermission
public String getRequiredPermission()
Description copied from interface:Command
Gets the name of the permission required to use the command.- Specified by:
getRequiredPermission
in interfaceCommand
- Returns:
- the required permission. Empty string means no requirement
-
getMinimumPermissionLevel
public PermissionLevel getMinimumPermissionLevel()
Description copied from interface:Command
Gets the permission level required to use the command.- Specified by:
getMinimumPermissionLevel
in interfaceCommand
- Returns:
- the required permission level
-
getScope
public Scope getScope()
Description copied from interface:Command
Gets the scope of this command.
-
-