Skip to content

支持自定义转发消息的标题 #153

Description

@tiedanGH

发现Overflow在发送转发消息时没有提供generateTitle(forward: RawForwardMessage)生成的标题,代码中没有看到使用title字段,导致mirai插件中所有自定义转发消息标题的操作全部失效了

https://github.com/mamoe/mirai/blob/283f8840d4682cc30fbdd87c66fe76f6a71ff8db/mirai-core-api/src/commonMain/kotlin/message/data/ForwardMessage.kt#L42

internal suspend fun sendForwardMessage(contact: Contact, forward: ForwardMessage): MsgId? {
val bot = contact.bot.asOnebot
val nodes = serializeForwardNodes(bot, forward.nodeList)
return when (contact) {
is Group -> bot.impl.sendGroupForwardMsg(contact.id, nodes, forward.source, forward.summary, forward.preview, forward.brief).data
else -> bot.impl.sendPrivateForwardMsg(contact.id, nodes, forward.source, forward.summary, forward.preview, forward.brief).data
}
}

不知道是否存在相关的限制没有实现此功能

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature新功能请求

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions