diff --git a/simbot-api/api/simbot-api.api b/simbot-api/api/simbot-api.api index a18e53812..d5f81b3ed 100644 --- a/simbot-api/api/simbot-api.api +++ b/simbot-api/api/simbot-api.api @@ -1731,8 +1731,11 @@ public final class love/forte/simbot/event/TypedJBlockEventListener$Companion { public abstract class love/forte/simbot/message/AggregatedMessageReceipt : java/lang/Iterable, kotlin/jvm/internal/markers/KMappedMarker, love/forte/simbot/message/StandardMessageReceipt { public fun ()V - public fun delete ([Llove/forte/simbot/ability/DeleteOption;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun deleteAll ([Llove/forte/simbot/ability/DeleteOption;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun delete ([Llove/forte/simbot/ability/DeleteOption;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public synthetic fun deleteAll ([Llove/forte/simbot/ability/DeleteOption;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun deleteAllAsync ([Llove/forte/simbot/ability/DeleteOption;)Ljava/util/concurrent/CompletableFuture; + public fun deleteAllBlocking ([Llove/forte/simbot/ability/DeleteOption;)I + public fun deleteAllReserve ([Llove/forte/simbot/ability/DeleteOption;)Llove/forte/simbot/suspendrunner/reserve/SuspendReserve; public abstract fun get (I)Llove/forte/simbot/message/SingleMessageReceipt; public abstract fun getSize ()I public fun iterator ()Ljava/util/Iterator; @@ -1897,7 +1900,7 @@ public abstract interface class love/forte/simbot/message/Message$Element : love } public abstract interface class love/forte/simbot/message/MessageContent : love/forte/simbot/ability/DeleteSupport { - public abstract fun delete ([Llove/forte/simbot/ability/DeleteOption;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public abstract synthetic fun delete ([Llove/forte/simbot/ability/DeleteOption;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun getId ()Llove/forte/simbot/common/id/ID; public abstract fun getMessages ()Llove/forte/simbot/message/Messages; public abstract fun getPlainText ()Ljava/lang/String; diff --git a/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageContent.kt b/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageContent.kt index 6f2ddacfa..b25591539 100644 --- a/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageContent.kt +++ b/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageContent.kt @@ -4,7 +4,7 @@ * Project https://github.com/simple-robot/simpler-robot * Email ForteScarlet@163.com * - * This file is part of the Simple Robot Library. + * This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -27,6 +27,7 @@ import love.forte.simbot.ability.DeleteFailureException import love.forte.simbot.ability.DeleteOption import love.forte.simbot.ability.DeleteSupport import love.forte.simbot.common.id.ID +import kotlin.jvm.JvmSynthetic /** @@ -81,6 +82,7 @@ public interface MessageContent : DeleteSupport { * @throws DeleteFailureException 删除行为失败 * @throws NoSuchElementException 没有可删除目标 */ + @JvmSynthetic override suspend fun delete(vararg options: DeleteOption) } diff --git a/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageReceipt.kt b/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageReceipt.kt index e9a66144e..f35e63f76 100644 --- a/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageReceipt.kt +++ b/simbot-api/src/commonMain/kotlin/love/forte/simbot/message/MessageReceipt.kt @@ -4,7 +4,7 @@ * Project https://github.com/simple-robot/simpler-robot * Email ForteScarlet@163.com * - * This file is part of the Simple Robot Library. + * This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -28,6 +28,7 @@ import love.forte.simbot.ability.DeleteSupport import love.forte.simbot.ability.SendSupport import love.forte.simbot.ability.StandardDeleteOption import love.forte.simbot.common.id.ID +import love.forte.simbot.suspendrunner.ST import kotlin.jvm.JvmSynthetic @@ -114,6 +115,7 @@ public abstract class AggregatedMessageReceipt : StandardMessageReceipt, Iterabl * * @see deleteAll */ + @JvmSynthetic override suspend fun delete(vararg options: DeleteOption) { deleteAll(options = options) } @@ -128,6 +130,7 @@ public abstract class AggregatedMessageReceipt : StandardMessageReceipt, Iterabl * * @return 删除成功的数量 */ + @ST public open suspend fun deleteAll(vararg options: DeleteOption): Int { var count = 0 for (receipt in this) { diff --git a/website b/website index b45e02251..4ad6bc877 160000 --- a/website +++ b/website @@ -1 +1 @@ -Subproject commit b45e02251a155835c1cc6701216ca90fcd875f5e +Subproject commit 4ad6bc87783e71801758d355d5e749e006df3050