-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
N优先级: 一般优先级: 一般s:core子系统: mirai-core子系统: mirai-coret:problem类型: 不容易归类为特性或 bug 的综合问题类型: 不容易归类为特性或 bug 的综合问题
Milestone
Description
问题描述
在执行该行代码时:sender.mute(60)//禁言1分钟
当sender是匿名成员时,会禁言失败抛出异常。
奇怪的是,我用两个机器人账号各试了5次,使用ANDROID_PAD协议的必定会触发这个异常,而使用MACOS协议的必定不会触发。
复现
ANDROID_PAD协议下使用似乎必发生
mirai-core 版本
2.14.0
bot-protocol
ANDROID_PAD
其他组件版本
No response
系统日志
java.lang.IllegalStateException: {"cgicode":100000,"retcode":100000,"msg":"login error [errcode:100000:0]","result":[]}
at net.mamoe.mirai.internal.MiraiImpl.muteAnonymousMember$suspendImpl(MiraiImpl.kt:618)
at net.mamoe.mirai.internal.MiraiImpl$muteAnonymousMember$1.invokeSuspend(MiraiImpl.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
网络日志
No response
补充信息
MACOS协议不发生
Metadata
Metadata
Assignees
Labels
N优先级: 一般优先级: 一般s:core子系统: mirai-core子系统: mirai-coret:problem类型: 不容易归类为特性或 bug 的综合问题类型: 不容易归类为特性或 bug 的综合问题