Closed alecfarmer closed 4 years ago
You're sending messages that you then bulk delete and shortly after delete with queueAfter. The second delete will trigger this error because the message no longer exists. This is intended behavior. You can use the failure callback ErrorResponseException.ignore(...)
to suppress specific error codes like this.
The reason this might behave differently per instance is that your code has race-conditions due to your use of queue()
which is async. The message you're sending might be sent before or after the messages from the history are retrieved.
I highly recommend changing this code to not use complete()
anywhere and replace deleteMessages
with purgeMessages
.
I'm getting this error on one bot and not another. It's the exact same code on both and both are running the most recent version of JDA.
Code causing errors:
This is the error I'm receiving: