Fix CommandValueArgumentParser<T>.parse

This commit is contained in:
Him188 2020-10-24 12:12:53 +08:00
parent a486ceb602
commit 87b56ade12

View File

@ -109,7 +109,7 @@ public fun <T : Any> CommandValueArgumentParser<T>.parse(raw: Any, sender: Comma
return when (raw) { return when (raw) {
is String -> parse(raw, sender) is String -> parse(raw, sender)
is SingleMessage -> parse(raw, sender) is MessageContent -> parse(raw, sender)
else -> throw IllegalArgumentException("Illegal raw argument type: ${raw::class.qualifiedName}") else -> throw IllegalArgumentException("Illegal raw argument type: ${raw::class.qualifiedName}")
} }
} }