From d024d1c9b4e97d83aa3407fdbad7c42b2762df4f Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Sun, 1 Mar 2020 13:24:03 +0800 Subject: [PATCH] `Recall` is now stable for group messages --- mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt index bfcc38054..242752033 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt @@ -240,7 +240,7 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor { */ abstract fun close(cause: Throwable? = null) - @UseExperimental(LowLevelAPI::class) + @UseExperimental(LowLevelAPI::class, MiraiExperimentalAPI::class) final override fun toString(): String = "Bot(${uin})" } @@ -254,7 +254,6 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor { * @throws PermissionDeniedException 当 [Bot] 无权限操作时 * @see Bot.recall */ -@MiraiExperimentalAPI suspend inline fun Bot.recall(message: MessageChain) = this.recall(message[MessageSource]) /** @@ -281,7 +280,6 @@ fun Bot.recallIn( * @param coroutineContext 额外的 [CoroutineContext] * @see recall */ -@MiraiExperimentalAPI fun Bot.recallIn( message: MessageChain, millis: Long,