diff --git a/guide/docs/commands/brigardier.md b/guide/docs/commands/brigardier.md index a3854def..babc0e57 100644 --- a/guide/docs/commands/brigardier.md +++ b/guide/docs/commands/brigardier.md @@ -98,7 +98,7 @@ You can provide argument suggestions using the `simpleSuggests` function. It is `suggests` function. ```kotlin -simpleSuggests { Material.values().map { it.name } } +simpleSuggests { Material.values().toList() } ``` It is okay to do heavy operations inside this function. Suggestions are asynchronous. The body of the `simpleSuggests`