Package revxrsal.commands.autocomplete
Interface CompletionContext
public interface CompletionContext
Represents the context where the completion occurs.
-
Method Summary
Modifier and TypeMethodDescription<A extends CommandActor>
Aactor()
Returns the command actor involved in this completionargs()
Returns the arguments supplied in this completion context.@NotNull ExecutableCommand
command()
Returns the command being auto-completed.@NotNull CommandHandler
Returns the owningCommandHandler
of this resolver.
-
Method Details
-
args
Returns the arguments supplied in this completion context. For most of the cases, it will contain an empty string as the last element, indicating that the parameter is being completed.- Returns:
- The arguments of the context
-
actor
Returns the command actor involved in this completion- Type Parameters:
A
- The actor type- Returns:
- The command actor
-
command
Returns the command being auto-completed.- Returns:
- The command
-
commandHandler
Returns the owningCommandHandler
of this resolver.- Returns:
- The command handler
-