diff --git a/mirai-core-api/src/commonMain/kotlin/message/data/Message.kt b/mirai-core-api/src/commonMain/kotlin/message/data/Message.kt index d3aed4bad..9de9ff9bf 100644 --- a/mirai-core-api/src/commonMain/kotlin/message/data/Message.kt +++ b/mirai-core-api/src/commonMain/kotlin/message/data/Message.kt @@ -184,6 +184,10 @@ public interface Message { // must be interface. Don't consider any changes. public operator fun plus(another: Iterable): MessageChain = another.fold(this, Message::plus).asMessageChain() + /** 将 [another] 按顺序连接到这个消息的尾部. */ + public operator fun plus(another: Array): MessageChain = + another.fold(this, Message::plus).asMessageChain() + /** 将 [another] 按顺序连接到这个消息的尾部. */ @JvmName("plusIterableString") public operator fun plus(another: Iterable): MessageChain =