1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 21:23:55 +08:00

Implement ConstrainSingle for ForwardMessage

This commit is contained in:
Him188 2021-01-06 14:37:52 +08:00
parent c086fa2cc5
commit cab8e2f674

View File

@ -106,7 +106,9 @@ public data class ForwardMessage(
val source: String,
val summary: String,
val nodeList: List<Node>,
) : MessageContent {
) : MessageContent, ConstrainSingle {
override val key: MessageKey<ForwardMessage> get() = Key
override fun contentToString(): String {
return "[转发消息]"
}