Module ultimategdbot.api
Class AnnotatedCommand
- java.lang.Object
-
- com.github.alex1304.ultimategdbot.api.command.annotated.AnnotatedCommand
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnnotatedCommandfrom(Object obj, CommandProvider provider)Set<String>getAliases()Gets the aliases for this command.CommandDocumentationgetDocumentation(Locale locale)Gets the documentation of the command.PermissionLevelgetMinimumPermissionLevel()Gets the permission level required to use the command.StringgetRequiredPermission()Gets the name of the permission required to use the command.ScopegetScope()Gets the scope of this command.reactor.core.publisher.Mono<Void>run(Context ctx)Defines the action of the commandStringtoString()
-
-
-
Method Detail
-
run
public reactor.core.publisher.Mono<Void> run(Context ctx)
Description copied from interface:CommandDefines the action of the command
-
getAliases
public Set<String> getAliases()
Description copied from interface:CommandGets the aliases for this command.- Specified by:
getAliasesin interfaceCommand- Returns:
- the set of aliases
-
getDocumentation
public CommandDocumentation getDocumentation(Locale locale)
Description copied from interface:CommandGets the documentation of the command.- Specified by:
getDocumentationin interfaceCommand- Parameters:
locale- the locale indicating the language of the documentation- Returns:
- the documentation
-
getRequiredPermission
public String getRequiredPermission()
Description copied from interface:CommandGets the name of the permission required to use the command.- Specified by:
getRequiredPermissionin interfaceCommand- Returns:
- the required permission. Empty string means no requirement
-
getMinimumPermissionLevel
public PermissionLevel getMinimumPermissionLevel()
Description copied from interface:CommandGets the permission level required to use the command.- Specified by:
getMinimumPermissionLevelin interfaceCommand- Returns:
- the required permission level
-
getScope
public Scope getScope()
Description copied from interface:CommandGets the scope of this command.
-
from
public static AnnotatedCommand from(Object obj, CommandProvider provider)
-
-