suggestIf

fun suggestIf(condition: CommandContext.() -> Boolean, block: CommandContext.() -> List<String>)

Conditionally suggests tab completion options based on a condition.

Parameters

condition

The condition to check before suggesting tab completion options.

block

The block to provide suggestions if the condition is met.