Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 4 tasks
yournyagurl opened this issue Oct 27, 2023 · 3 comments

Comments

@yournyagurl
Copy link

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

  • DMs
  • DMs (group)
  • Channels
  • Channel (NSFW)

Additional information & file uploads

image

@rune-maesfranckx
Copy link

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.

@CombatCalamity
Copy link

which line is the confirm function on?

@karcfa
Copy link

karcfa commented May 11, 2024

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 "myemail@gmail.com" 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants