Closed Chenyuxin221 closed 1 year ago
3.0.0-RC.3
simbot-component-mirai-core:3.0.0.0-M4
Kotlin
Maven
mirai (QQ)
MiraiNudgeEvent监听内使用封装好的replyNudge(),结果返回值为false
@Listener suspend fun MiraiNudgeEvent.nudge(){ println(replyNudge()) }
No response
翻看源码发现无法进入if语句
@JvmSynthetic override suspend fun replyNudge(): Boolean { if (this is User) { return sendNudge(originalEvent.from.nudge()) } return false }
使用 originalEvent.from.nudge().sendTo(originalEvent.subject) 可以成功回复戳一戳
originalEvent.from.nudge().sendTo(originalEvent.subject)
之前使用的IPAD协议,使用replyNudge()也没报错,后面改成了自己写的就报错了,最后才改的AndroidPhone协议
版本号
3.0.0-RC.3
附加版本
simbot-component-mirai-core:3.0.0.0-M4
涉及的编程语言
Kotlin
项目构建工具
Maven
涉及的组件库
mirai (QQ)
问题描述
MiraiNudgeEvent监听内使用封装好的replyNudge(),结果返回值为false
复现方式
相关日志
No response
其他补充
翻看源码发现无法进入if语句
使用
originalEvent.from.nudge().sendTo(originalEvent.subject)
可以成功回复戳一戳