Interface CompletionContext


public interface CompletionContext
Represents the context where the completion occurs.
  • Method Details

    • args

      @NotNull @Unmodifiable @NotNull List<String> 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

      @NotNull <A extends CommandActor> A actor()
      Returns the command actor involved in this completion
      Type Parameters:
      A - The actor type
      Returns:
      The command actor
    • command

      @NotNull @NotNull ExecutableCommand command()
      Returns the command being auto-completed.
      Returns:
      The command
    • commandHandler

      @NotNull @NotNull CommandHandler commandHandler()
      Returns the owning CommandHandler of this resolver.
      Returns:
      The command handler