-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
N优先级: 一般优先级: 一般s:core子系统: mirai-core子系统: mirai-coret:problem类型: 不容易归类为特性或 bug 的综合问题类型: 不容易归类为特性或 bug 的综合问题
Milestone
Description
问题描述
如图,根据描述,At()调用contentToString()将被转化为"@群名片",但经过test发现实际转化的是"@qq",测试结果如下(测试代码贴在系统日志了):
可见无论是At.contentToString()或者At.content,返回字符串均为"@qq",要伪造假艾特字符串还是只能用"@"+group.getMember(MasterID)?.nameCardOrNick
复现
test一下就好
mirai-core 版本
2.13.0-M1
bot-protocol
ANDROID_PAD
其他组件版本
No response
系统日志
suspend fun test5(group:Group,name:String="At(ID).content")
{
group.sendMessage("测试${name}开始")
group.sendMessage(At(MasterID))
group.sendMessage(At(MasterID).content)
group.sendMessage(At(MasterID).contentToString())
group.sendMessage("@"+group.getMember(MasterID)?.nameCardOrNick)
group.sendMessage("测试${name}完毕")
}
网络日志
No response
补充信息
No response
Metadata
Metadata
Assignees
Labels
N优先级: 一般优先级: 一般s:core子系统: mirai-core子系统: mirai-coret:problem类型: 不容易归类为特性或 bug 的综合问题类型: 不容易归类为特性或 bug 的综合问题