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:
parent
c086fa2cc5
commit
cab8e2f674
@ -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 "[转发消息]"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user