mirai-core / net.mamoe.mirai.message.data / kotlin.sequences.Sequence

Extensions for kotlin.sequences.Sequence

asMessageChain

直接将 this 委托为一个 MessageChain

fun Sequence<SingleMessage>.asMessageChain(): MessageChain

thisflatten 委托为一个 MessageChain

fun Sequence<Message>.asMessageChain(): MessageChain

flatten

扁平化消息序列.

fun Sequence<Message>.flatten(): Sequence<SingleMessage>fun Sequence<SingleMessage>.flatten(): Sequence<SingleMessage>