diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/Message.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/Message.kt index 5b13d7c2d..e8b55e863 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/Message.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/Message.kt @@ -58,6 +58,8 @@ interface Message { * [@123456789] * [face123] * ``` + * + * 使用 [toString] 将得到同样的值 */ val stringValue: String diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/BotSession.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/BotSession.kt index 5a6eaeb9f..9768a4ec4 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/BotSession.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/BotSession.kt @@ -33,7 +33,7 @@ internal inline fun TIMBotNetworkHandler.BotSession( bot: Bot, sessionKey: SessionKey, socket: DataPacketSocketAdapter -) = BotSession(bot, sessionKey, socket, this) +): BotSession = BotSession(bot, sessionKey, socket, this) /** * 登录会话. 当登录完成后, 客户端会拿到 sessionKey.