Skip to content

Commit

Permalink
Update Argument.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-MX committed May 21, 2024
1 parent d828615 commit 9589a66
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ open class Argument<T : Any>(
suggests = CommandSuggestionRegistry.get(typeName) as Optional<CommandSuggestion<T>>
}

// todo this should be called with [validate] for efficiency, as well as the consumer
open fun getValueOfString(cmd: DeclarativeCommandBuilder, context: BaseCommandContext<*>, split: List<String>): T? {
return getValueOfString(cmd, context, split.joinToString(" "))
}
Expand Down

0 comments on commit 9589a66

Please sign in to comment.