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

Overflow在MemberMuteEvent中似乎未保持mirai所注释的operator特性 #130

Open
MrY-Cat opened this issue Feb 24, 2025 · 0 comments
Open
Labels
question 对错误或其它问题进行提问

Comments

@MrY-Cat
Copy link

MrY-Cat commented Feb 24, 2025

问题描述

Image

如图,mirai2.15.0在该事件中的operator为null时代表操作者是bot,但转为overflow后该特性似乎丢失了

目前的实际现象是现在即使我是被机器人禁言的,也会触发后续步骤而不会return

(也有极小概率是mirai2.16.0新增的特性变动,但更新内容中没有,应该不是)

复现

在对该事件的监听中加入代码:

    val operator = operator ?: return //确保操作人不是bot
    
   //后续操作...

而后让bot禁言一个人,观察后续操作是否执行可以推断是否return

Overflow 版本

1.0.3

其他组件版本

No response

系统日志


网络日志

应该用不到

补充信息

No response

@MrY-Cat MrY-Cat added the question 对错误或其它问题进行提问 label Feb 24, 2025
MrXiaoM added a commit that referenced this issue Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 对错误或其它问题进行提问
Projects
None yet
Development

No branches or pull requests

1 participant