simpleSuggests

fun simpleSuggests(coroutineScope: CoroutineScope = silkCoroutineScope, suggestionBuilder: suspend (CommandContext<Source>) -> Iterable<Any?>?): ArgumentCommandBuilder<Source, T>(source)

Deprecated

The name 'simpleSuggests' has been superseded by 'suggestListSuspending'

Replace with

suggestListSuspending(coroutineScope, suggestionBuilder)

Adds custom suspending suggestion logic for an argument.

Parameters

coroutineScope

the CoroutineScope where the suggestions should be built in - an async scope by default, but you can change this to a synchronous scope using net.silkmc.silk.core.task.mcCoroutineScope