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

似乎 MemberJoinRequestEvent 中的 reject() 方法并不能传达拒绝理由 #536

Closed
milkice233 opened this issue Aug 24, 2020 · 7 comments
Assignees
Labels
N 优先级: 一般 t:bug 类型: bug x:protocol 属性: 协议相关 z:obsolete 状态: 过时的问题

Comments

@milkice233
Copy link

milkice233 commented Aug 24, 2020

之前试了下监听 MemberJoinRequestEvent 事件并在一些情况下调用 event.reject(),根据文档和代码第一个参数应该是是否加入黑名单,第二个参数则指定拒绝理由,但在测试过程中用户被拒绝加群请求时并没有发送拒绝理由,目前尚不清楚是尚未实现还是 bug 还是我的使用方式有问题

System.out.println("[!] ID not exists in the request.");
event.reject(false, "未找到你的数据,请检查");

日志里没有发现明显的错误报告……稳定复现

@milkice233 milkice233 added the x:question 标签: 需要更多信息 label Aug 24, 2020
@PeratX
Copy link
Member

PeratX commented Aug 24, 2020

奶冰好呀

@milkice233
Copy link
Author

奶冰好呀

pe晚上好呀,最近才有空看看mirai

@PeratX
Copy link
Member

PeratX commented Aug 24, 2020

应该是bug

@mzdluo123
Copy link
Member

我记得之前好像是可以的吧,奇怪。。

@milkice233
Copy link
Author

以及测试下来,在刚刚启动的一段时间内加群请求是可以正常触发事件的,但是后期似乎就触发不了了,就像是没收到入群申请一样,同样地日志里也没有值得留意的事情

只是先提一句,暂时不开新 issue 了

@ryoii
Copy link
Member

ryoii commented Aug 26, 2020

这个问题很怪

@Him188 Him188 added N 优先级: 一般 x:protocol 属性: 协议相关 unplanned t:bug 类型: bug and removed x:question 标签: 需要更多信息 labels Dec 27, 2020
@Him188 Him188 added this to the Backlog milestone Dec 29, 2020
@Him188 Him188 removed the unplanned label Dec 29, 2020
@Karlatemp
Copy link
Member

经测试 QQ PC, QQ Android, TIM Android 均无此问题

@Him188 Him188 removed this from the Backlog milestone Feb 18, 2021
@Him188 Him188 added the z:obsolete 状态: 过时的问题 label Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般 t:bug 类型: bug x:protocol 属性: 协议相关 z:obsolete 状态: 过时的问题
Projects
None yet
Development

No branches or pull requests

6 participants