mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 15:00:38 +08:00
Remove redundant shortcuts
This commit is contained in:
parent
6ea11c9ac3
commit
6372cea61d
@ -17,7 +17,6 @@ import net.mamoe.mirai.utils.BotConfiguration
|
|||||||
import net.mamoe.mirai.utils.DefaultLogger
|
import net.mamoe.mirai.utils.DefaultLogger
|
||||||
import net.mamoe.mirai.utils.MiraiInternalAPI
|
import net.mamoe.mirai.utils.MiraiInternalAPI
|
||||||
import net.mamoe.mirai.utils.MiraiLogger
|
import net.mamoe.mirai.utils.MiraiLogger
|
||||||
import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail
|
|
||||||
import net.mamoe.mirai.utils.io.logStacktrace
|
import net.mamoe.mirai.utils.io.logStacktrace
|
||||||
import kotlin.coroutines.CoroutineContext
|
import kotlin.coroutines.CoroutineContext
|
||||||
import kotlin.coroutines.coroutineContext
|
import kotlin.coroutines.coroutineContext
|
||||||
@ -203,16 +202,6 @@ class Bot(val account: BotAccount, val logger: MiraiLogger, context: CoroutineCo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend inline fun Int.qq(): QQ = getQQ(this.coerceAtLeastOrFail(0).toUInt())
|
|
||||||
suspend inline fun Long.qq(): QQ = getQQ(this.coerceAtLeastOrFail(0))
|
|
||||||
suspend inline fun UInt.qq(): QQ = getQQ(this)
|
|
||||||
|
|
||||||
suspend inline fun Int.group(): Group = getGroup(this.coerceAtLeastOrFail(0).toUInt())
|
|
||||||
suspend inline fun Long.group(): Group = getGroup(this.coerceAtLeastOrFail(0))
|
|
||||||
suspend inline fun UInt.group(): Group = getGroup(GroupId(this))
|
|
||||||
suspend inline fun GroupId.group(): Group = getGroup(this)
|
|
||||||
suspend inline fun GroupInternalId.group(): Group = getGroup(this)
|
|
||||||
|
|
||||||
@UseExperimental(MiraiInternalAPI::class)
|
@UseExperimental(MiraiInternalAPI::class)
|
||||||
suspend fun close() {
|
suspend fun close() {
|
||||||
network.close()
|
network.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user