victornpb / undiscord

Undiscord - Delete all messages in a Discord server / channel or DM (Easy and fast) Bulk delete
https://victornpb.github.io/undiscord
MIT License
5.24k stars 716 forks source link

Not deleting bug after 25 messages #536

Open sorryzzss opened 1 year ago

sorryzzss commented 1 year ago

Undiscord Version

v5.2.0

Browser

115.0.5790.110 (Official Build) (64-bit)

Extension

TamperMonkey

Reproduction steps

I put in the date and everything i want i press author id server id channel id then i press delete and this error happens after 25 messages and then if i try it press delete again it doesnt it instantly.

[End condition A]. {"running":true,"delCount":25,"failCount":0,"grandTotal":76,"offset":0,"iterations":2,"_seachResponse"

Actual results

This pops up

image

Expected results

it should delete the dms instead of stopping

Bug affects

Additional information & file uploads

image

fennelbaby commented 1 year ago

I'm having the same exact issue. Following.

Username124623 commented 1 year ago

Same issue @victornpb would appreciate you taking a look

Manuru1 commented 1 year ago

Same issue, doesnt seem to be a fix rn.

SilentNewt commented 1 year ago

same issue, still needs a fix

NaryanSambhi commented 1 year ago

looks like an old version. discord updated and it broke. Use the new version. New version doesn't work? Check all fields are correct, 400 and 401 errors are from incorrect keys and dates being auto-filled with your browsers discord password for some reason. This is what i figured out troubleshooting for myself, lmk if it works!

Manuru1 commented 1 year ago

Fixed it. Heres how.

Download the newest version on the github.

Make sure your AUTO FILL Settings with discord.com are OFF FOR PASSWORDS, USERNAMES ETC ETC. it will hit you with the "400" error. As for "401" make sure you scroll down to Adv settings and fill that token up baby.

Personally, Set your Search delay to 5000ms, and delete delay 2600ms, This is so discord doesn't cuck you when deleting, and you can look as "legit" as possible without getting rate limited.

Go to ur dms, fill up those tight fields, and fire off.

Note: If you use a form of ad blocker or tracker blocker, turn that off too.

RaceIsIm commented 1 year ago

Wow thats lowkey annoying. I hope there is an actual fix pushed soon. with 2600ms it takes 3 business days to undiscord anything 🤣

x86id93 commented 1 year ago

the issue is with the api when you delete page 1 you need to wait for page 2 to drop down to skip this you need to delete page 2 before page 1

RoyalBeefy commented 1 year ago

I've tried several ways to fix most of the bugs in the latest version of undiscord and my only solution that has worked for me is to install both Greasy Fork version and OpenUserJS both at the same time with either tampermonkey or violentmonkey then go to the desired dm and press the right undiscord icon and it should work!

sorryzzss commented 1 year ago

I've tried several ways to fix most of the bugs in the latest version of undiscord and my only solution that has worked for me is to install both Greasy Fork version and OpenUserJS both at the same time with either tampermonkey or violentmonkey then go to the desired dm and press the right undiscord icon and it should work!

Whats your discord? could you show me how to do this?

Balls0fSteel commented 1 year ago

The API is very, very limited now. I tried to remove a few posts by myself and I get rate limited instantly. BY HAND. Years ago I could remove 100 post no problem. Months ago I could remove like 20-30 no problem. Now it's just a few and I get slapped with rate limit.

But make sure you buy Nitro, and you buy server boost and you support Discord guys!!11

(God, I hate Discord.)

eon-pixel commented 1 year ago

The API is very, very limited now. I tried to remove a few posts by myself and I get rate limited instantly. BY HAND. Years ago I could remove 100 post no problem. Months ago I could remove like 20-30 no problem. Now it's just a few and I get slapped with rate limit.

But make sure you buy Nitro, and you buy server boost and you support Discord guys!!11

(God, I hate Discord.)

I'm having no issues using it? Deleting messages manually works, and so does Undiscord although slowly.

nicoleuleet commented 1 year ago

Use this script: https://pastebin.com/DADU27Bq

Use Tampermonkey and create a new script with the code in the Pastebin.

If you want to fix it yourself remove these lines from your script:

      else {
        log.verb('Ended because API returned an empty page.');
        if (this.state.grandTotal - this.state.offset > 0) log.warn('[End condition A].', this.state); // I don't remember why this was here. (looks like messagesToDelete==0 && skippedMessages==0 is enough
        else log.warn('[End condition B] if you see this please report.', this.state);
        if (isJob) break; // break without stopping if this is part of a job
        this.state.running = false;
      }
RayKoopa commented 11 months ago

The default search delay of 30 seconds seems too short to get a (complete) new page of messages at the moment - in fact, it often just returns an empty page, ending the script (use nico's modification to prevent that). If you increase the search delay just a bit more, to like ~35 seconds, you currently seem to get a complete new page of 25 messages.

xafemode commented 5 months ago

Use this script: https://pastebin.com/DADU27Bq

Use Tampermonkey and create a new script with the code in the Pastebin.

If you want to fix it yourself remove these lines from your script:

      else {
        log.verb('Ended because API returned an empty page.');
        if (this.state.grandTotal - this.state.offset > 0) log.warn('[End condition A].', this.state); // I don't remember why this was here. (looks like messagesToDelete==0 && skippedMessages==0 is enough
        else log.warn('[End condition B] if you see this please report.', this.state);
        if (isJob) break; // break without stopping if this is part of a job
        this.state.running = false;
      }

This one right here fellas.