Skip to content

Commit

Permalink
Update BrigardierWrapper.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkmar committed Mar 24, 2021
1 parent ad24e04 commit b38693b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ inline fun <T> ArgumentBuilder<SCS, *>.argument(
* Add custom suspending suggestion logic for an argument.
*/
inline fun RequiredArgumentBuilder<SCS, *>.simpleSuggests(
crossinline suggestionBuilder: suspend (CommandContext<SCS>) -> Iterable<Any?>
crossinline suggestionBuilder: suspend (CommandContext<SCS>) -> Iterable<Any?>?
) {
suggests { context, builder ->
fabrikCoroutineScope.async {
suggestionBuilder.invoke(context).forEach {
suggestionBuilder.invoke(context)?.forEach {
if (it is Int)
builder.suggest(it)
else
Expand Down

0 comments on commit b38693b

Please sign in to comment.