MiraiEvent(id=1625793197000000, event=NewFriendRequestEvent(bot=Bot(3545028233), eventId=1625793197000000, message=我是daf, fromId=3209851541, fromGroupId=0, fromNick=wd))
MiraiEvent(id=1625793209000000, event=NewFriendRequestEvent(bot=Bot(3545028233), eventId=1625793209000000, message=XianYu, fromId=3209851541, fromGroupId=0, fromNick=wd))
Exception in thread "DefaultDispatcher-worker-3" java.lang.IllegalStateException: the request NewFriendRequestEvent(bot=Bot(3545028233), eventId=1625793209000000, message=XianYu, fromId=3209851541, fromGroupId=0, fromNick=wd) is outdated: You had already responded it on another device.
at net.mamoe.mirai.internal.MiraiImpl.acceptNewFriendRequest$suspendImpl(MiraiImpl.kt:136)
at net.mamoe.mirai.internal.MiraiImpl.acceptNewFriendRequest(MiraiImpl.kt)
at net.mamoe.mirai.event.events.NewFriendRequestEvent.accept(friend.kt:90)
at love.forte.simbot.component.mirai.sender.MiraiSetter$setFriendAddRequest$1.invokeSuspend(MiraiSetter.kt:76)
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:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
疑问描述
具体代码:
在监听FriendAddRequest,当第一次不符合要求拒绝后,第二次响应及之后的所有请求则会出现该问题: