mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Generic Bot.alsoLogin
This commit is contained in:
parent
ab98206d18
commit
14ac929328
@ -18,7 +18,7 @@ import kotlin.jvm.JvmName
|
||||
*
|
||||
* @throws LoginFailedException
|
||||
*/
|
||||
suspend inline fun Bot.alsoLogin(): Bot = also { login() }
|
||||
suspend inline fun <B: Bot> B.alsoLogin(): B = also { login() }
|
||||
|
||||
/**
|
||||
* 取得机器人的 QQ 号
|
||||
|
Loading…
Reference in New Issue
Block a user