undiscord icon indicating copy to clipboard operation
undiscord copied to clipboard

Error searching messages, API responded with status 401! {"message":"401: Unauthorized","code":0} CoreException {}

Open yournyagurl opened this issue 1 year ago • 3 comments

Undiscord Version

5.2.3

Browser

Version 118.0.5993.118 (Official Build) (64-bit)

Extension

TamperMonkey

Reproduction steps

Put in all the needed IDs and authorization tokens ran the code

Actual results

Error searching messages, API responded with status 401! {"message":"401: Unauthorized","code":0} CoreException {}

Expected results

To delete all messages successfully

Bug affects

  • [X] DMs
  • [ ] DMs (group)
  • [ ] Channels
  • [ ] Channel (NSFW)

Additional information & file uploads

image

yournyagurl avatar Oct 27 '23 20:10 yournyagurl

Go to advanced settings and fill auth token (also go to Messages interval and check that Chrome hasnt auto filled any other field). For full automization go into the deleteDiscordMessages.user.js via tampermonkey and change replace the confirm function with the following:

async confirm() {
    // Log message indicating automatic confirmation
    log.verb('automatic confirmation, will continue...');

    // Dont ask for confirmation for next requests
    this.options.askForConfirmation = false;

    // Always return 'true"
    return true;
}

Then save and refresh the discord site.

rune-maesfranckx avatar Nov 25 '23 12:11 rune-maesfranckx

which line is the confirm function on?

CombatCalamity avatar Feb 01 '24 02:02 CombatCalamity

Go to advanced settings and fill auth token (also go to Messages interval and check that Chrome hasnt auto filled any other field). For full automization go into the deleteDiscordMessages.user.js via tampermonkey and change replace the confirm function with the following:

async confirm() {
    // Log message indicating automatic confirmation
    log.verb('automatic confirmation, will continue...');

    // Dont ask for confirmation for next requests
    this.options.askForConfirmation = false;

    // Always return 'true"
    return true;
}

Then save and refresh the discord site.

auth token fix fixes the error in 5.2.3 but shows another

Error searching messages, API responded with status 400! {"message":"Invalid Form Body","code":50035,"errors":{"max_id":{"_errors":[{"code":"NUMBER_TYPE_COERCE","message":"Value "[email protected]" is not snowflake."}]}}} CoreException {}

also i dont know why but it uses wrong email. thats not my acc email in the error. its my previous email

EDIT Okay i get it now, it wrote my email in another field i just had to remove it

karcfa avatar May 11 '24 07:05 karcfa