Remove redundant shortcuts

This commit is contained in:
Him188 2019-12-04 20:58:20 +08:00
parent 6ea11c9ac3
commit 6372cea61d

View File

@ -17,7 +17,6 @@ import net.mamoe.mirai.utils.BotConfiguration
import net.mamoe.mirai.utils.DefaultLogger
import net.mamoe.mirai.utils.MiraiInternalAPI
import net.mamoe.mirai.utils.MiraiLogger
import net.mamoe.mirai.utils.internal.coerceAtLeastOrFail
import net.mamoe.mirai.utils.io.logStacktrace
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)
suspend fun close() {
network.close()