Improve messages

This commit is contained in:
Him188 2020-09-10 08:56:13 +08:00
parent d403d5d79c
commit 3c64b99553

View File

@ -92,11 +92,11 @@ internal object ConsoleCommandSenderImplPure : MiraiConsoleImplementation.Consol
kotlin.runCatching {
lineReader.printAbove(message)
}.onFailure {
consoleLogger.error(it)
consoleLogger.error("Exception while ConsoleCommandSenderImplPure.sendMessage", it)
}
}
override suspend fun sendMessage(message: Message) {
return sendMessage(message.contentToString())
return sendMessage(message.toString())
}
}