Commit 14ac9293 authored by Him188's avatar Him188

Generic Bot.alsoLogin

parent ab98206d
...@@ -18,7 +18,7 @@ import kotlin.jvm.JvmName ...@@ -18,7 +18,7 @@ import kotlin.jvm.JvmName
* *
* @throws LoginFailedException * @throws LoginFailedException
*/ */
suspend inline fun Bot.alsoLogin(): Bot = also { login() } suspend inline fun <B: Bot> B.alsoLogin(): B = also { login() }
/** /**
* 取得机器人的 QQ 号 * 取得机器人的 QQ 号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment