suggestionAsync

fun suggestionAsync(provider: (CommandContext<CommandSourceStack>) -> List<String>): CommandCreator<T>

Adds asynchronous suggestions for this command argument.

Return

this CommandCreator instance for chaining

Parameters

provider

a function that returns a list of strings to be suggested