undiscord: [BUG] Discord limiting API response, causing messages to delete extremely slowly.

WARNING: Github Issues are publicly visible, do not post sensitive information here. You may want to use the “Screenshot mode” before taking screenshots or copying logs.

Describe the bug A clear and concise description of what the bug is. Discord may be limiting the rate at what you may be able to delete at sadly, unless it’s just a new error within the code, you should look into this.

To Reproduce Steps to reproduce the behavior:

  1. Go to a channel.
  2. Click on everything to run the script
  3. Scroll down the log, after a few minutes you’ll see the a rate limit between 4000-6000, which impacts deletion speed.
  4. See error

Screenshots / Logs If applicable, add screenshots and or copy log to help explain your problem. image

now the dates are messing up to 2085 and 2017 despite no messages being in 2019 or lower, only 2020.

Paste logs here
You're being rate limited to 5643ms.

Affects (Add an X to items that apply)

  • DMs
  • DM Groups
  • Channel
  • Channel (NSFW)
  • Server (All Channels)
  • Other (explain)

System:

  • OS: [CrOS]
  • Browser [newest Chrome version]

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 6
  • Comments: 25 (3 by maintainers)

Most upvoted comments

Yeah, I can confirm this bug. If one allows DDM to delete messages as fast as possible, it’ll continously hit the rate limits and reach a delay somewhere in the 4-12 seconds range which is never lowered again. After a bit of testing, I’ve found that manually adjusting the delay to around 1000ms (1s) allows the script to work through thousands of messages without hitting Discord’s rate limits.

@victornpb I think a potential solution would be to add a new form field where users can enter a custom delay to deal with server-side rate limit changes like this.