mirai-core / net.mamoe.mirai.message.data / ForwardMessage / DisplayStrategy / generatePreview

generatePreview

open fun generatePreview(forward: ForwardMessage): Sequence<String>

显示在卡片 body 中, 只会显示 sequence 前四个元素. Java 用户: 使用 sequenceOf (SequenceKt.sequenceOf) 或 asSequence (SequenceKt.asSequence)