From 14ac92932801820198926c6008107744a72c2f44 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 10 Jan 2020 23:20:16 +0800 Subject: [PATCH] Generic Bot.alsoLogin --- mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotHelper.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotHelper.kt index c5dca664e..bab878901 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotHelper.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/BotHelper.kt @@ -18,7 +18,7 @@ import kotlin.jvm.JvmName * * @throws LoginFailedException */ -suspend inline fun Bot.alsoLogin(): Bot = also { login() } +suspend inline fun B.alsoLogin(): B = also { login() } /** * 取得机器人的 QQ 号