mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-30 02:30:12 +08:00
Add Message.plus(Array<out Message>
This commit is contained in:
parent
dc449bdca9
commit
58c2a2edb8
@ -184,6 +184,10 @@ public interface Message { // must be interface. Don't consider any changes.
|
|||||||
public operator fun plus(another: Iterable<Message>): MessageChain =
|
public operator fun plus(another: Iterable<Message>): MessageChain =
|
||||||
another.fold(this, Message::plus).asMessageChain()
|
another.fold(this, Message::plus).asMessageChain()
|
||||||
|
|
||||||
|
/** 将 [another] 按顺序连接到这个消息的尾部. */
|
||||||
|
public operator fun plus(another: Array<out Message>): MessageChain =
|
||||||
|
another.fold(this, Message::plus).asMessageChain()
|
||||||
|
|
||||||
/** 将 [another] 按顺序连接到这个消息的尾部. */
|
/** 将 [another] 按顺序连接到这个消息的尾部. */
|
||||||
@JvmName("plusIterableString")
|
@JvmName("plusIterableString")
|
||||||
public operator fun plus(another: Iterable<String>): MessageChain =
|
public operator fun plus(another: Iterable<String>): MessageChain =
|
||||||
|
Loading…
Reference in New Issue
Block a user