why am I getting this error sometimes even though the code works perfectly fine?
I have a confessions system set up for my server and it works fine but at times it doesn’t work and keeps sending this error. What does it mean and how do I fix it? Or do I just ignore it?
12 Replies
Project ID:
N/A
No search results found.
⚠️ experimental feature
N/A
looks like you're trying to delete a message that doesn't exist or has already been deleted, but we would need to see some code to know what's going on
https://github.com/st1xkz/bobert/blob/main/bobert/plugins/listeners/confess.py
That’s the full file
so someone sends a confession in the confession channel, you delete their message and send a confirmation. correct?
yes
and when the call to on line 99 fails, it also fails to delete their message?
correct
call it a hunch, but you might be trying to delete the confession message too soon, you have already added a wait before deleting the confirmation message, try to send the confirmation message then delete the confession message
wym by that
that is the first function call you do in that event handler, sure you got the message but something might not have propagated through discords servers at the time of that function call