Open Clyde6790pGIT opened 5 months ago
For anyone that is having the same issue
I just check the script code and change this code lines
In your tampermonkey script find this function called "deleteMessage"
Then search for the if that checks if the messages are being deleted too fast
At the end of that if just add this code
else if (resp.status === 403) {
// insufficient permissions to delete the message
log.warn('Insufficient permissions to delete message. Skipping this message.');
this.state.offset++;
this.state.failCount++;
return 'FAIL_SKIP'; // Failed but we will skip it next time
}
It should work and skip the message
Undiscord Version
v5.2.3
Browser
1.66.118 Chromium: 125.0.6422.147 (Official Build) (64-bit)
Extension
ViolentMonkey
Reproduction steps
Actual results
it is repeatedly trying to delete bot messages it cannot delete even tho everything including authtoken is set correctly and it does not delete other messages at all
Expected results
It should skip bot messages or messages in general that it cannot delete due to the error of not having perms to do so that it can disregard those messages and not repeatedly try to delete them.
Bug affects
Additional information & file uploads
It keeps going back to the undeletable messages even after it deletes a message older than it. (Potential solution: try to skip messages that cannot be deleted due to the error shown below.) Error: Error deleting message, API responded with status 403! {"message":"Missing Permissions","code":50013}