Skip to content
New issue

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

MessageEvent中的MessageChain可以更改,可能造成问题或者误解 #1676

Closed
khjxiaogu opened this issue Nov 15, 2021 · 2 comments
Closed
Labels
M 优先级: 主要 t:bug 类型: bug x:question 标签: 需要更多信息 z:wait-for-reply 状态: 等待回复
Milestone

Comments

@khjxiaogu
Copy link

khjxiaogu commented Nov 15, 2021

对MessageEvent等地方获取的信息进行更改并不会产生任何异常,可能造成问题。

复现

在MessageEvent中更改getMessage()

版本及相关选项选择

  • mirai-core: 2.8.0
  • bot-protocol: ANDROID_PHONE

网络日志


补充信息

@khjxiaogu khjxiaogu added the x:question 标签: 需要更多信息 label Nov 15, 2021
@khjxiaogu khjxiaogu changed the title GroupMessageEvent.getSource抛出异常 MessageEvent中的MessageChain可以更改,可能造成问题或者误解 Nov 15, 2021
@khjxiaogu khjxiaogu reopened this Nov 15, 2021
@Karlatemp
Copy link
Member

What the meaning of 更改getMessage()? Provide the minimum reproducible code please.

@Karlatemp Karlatemp added z:wait-for-reply 状态: 等待回复 t:bug 类型: bug M 优先级: 主要 labels Nov 15, 2021
@Karlatemp Karlatemp added this to the 2.9.0-M1 milestone Nov 15, 2021
@khjxiaogu
Copy link
Author

What the meaning of 更改getMessage()? Provide the minimum reproducible code please.

Like getMessage().removeIf(xxx) or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 优先级: 主要 t:bug 类型: bug x:question 标签: 需要更多信息 z:wait-for-reply 状态: 等待回复
Projects
None yet
Development

No branches or pull requests

2 participants