Commit d024d1c9 authored by Him188's avatar Him188

`Recall` is now stable for group messages

parent 03e22bcf
...@@ -240,7 +240,7 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor { ...@@ -240,7 +240,7 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor {
*/ */
abstract fun close(cause: Throwable? = null) abstract fun close(cause: Throwable? = null)
@UseExperimental(LowLevelAPI::class) @UseExperimental(LowLevelAPI::class, MiraiExperimentalAPI::class)
final override fun toString(): String = "Bot(${uin})" final override fun toString(): String = "Bot(${uin})"
} }
...@@ -254,7 +254,6 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor { ...@@ -254,7 +254,6 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor {
* @throws PermissionDeniedException 当 [Bot] 无权限操作时 * @throws PermissionDeniedException 当 [Bot] 无权限操作时
* @see Bot.recall * @see Bot.recall
*/ */
@MiraiExperimentalAPI
suspend inline fun Bot.recall(message: MessageChain) = this.recall(message[MessageSource]) suspend inline fun Bot.recall(message: MessageChain) = this.recall(message[MessageSource])
/** /**
...@@ -281,7 +280,6 @@ fun Bot.recallIn( ...@@ -281,7 +280,6 @@ fun Bot.recallIn(
* @param coroutineContext 额外的 [CoroutineContext] * @param coroutineContext 额外的 [CoroutineContext]
* @see recall * @see recall
*/ */
@MiraiExperimentalAPI
fun Bot.recallIn( fun Bot.recallIn(
message: MessageChain, message: MessageChain,
millis: Long, millis: Long,
......
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