We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
直接使用‘==’对MessageChain对象进行比较时,会同时比较MessageChain的Source组件,导致mirai码相同的消息链的比较结果为False 需要一个只对消息内容进行比较的方法
The text was updated successfully, but these errors were encountered:
这一问题属于MessageChain的设计失误,我会考虑在0.3.0版本中重构MessageChain的一些设计,来避免这个问题。
MessageChain
当前版本中,可以先用exclude方法去除Source元素后,再进行比较,例如:
exclude
Source
msg1.exclude(Source) == msg2.exclude(Source)
Sorry, something went wrong.
0.3.0 更新中解决了这个问题(应该吧)
No branches or pull requests
直接使用‘==’对MessageChain对象进行比较时,会同时比较MessageChain的Source组件,导致mirai码相同的消息链的比较结果为False
需要一个只对消息内容进行比较的方法
The text was updated successfully, but these errors were encountered: