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

Cannot delete if "int" value greater than 9999 #640

Open
1 of 4 tasks
sudoAlphaX opened this issue Jun 24, 2024 · 1 comment
Open
1 of 4 tasks

Cannot delete if "int" value greater than 9999 #640

sudoAlphaX opened this issue Jun 24, 2024 · 1 comment

Comments

@sudoAlphaX
Copy link

Undiscord Version

5.2.3

Browser

Mozilla Firefox 127.0.1

Extension

Tampermonkey v5.1.1

Reproduction steps

  1. Install the Undiscord userscript following the instructions from README
  2. Open the DM you want to delete
  3. Click on the autofill buttons next to Author ID, Server ID, Channel ID and Authorization token
  4. Click delete button

Actual results

Messages fail to delete after 9999 search limit.
Error produced:

Error searching messages, API responded with status 400!
	{"message":"Invalid Form Body","code":50035,"errors":{"offset":{"_errors":[{"code":"NUMBER_TYPE_MAX","message":"int value should be less than or equal to 9975."}]}}}
CoreException	{}

Expected results

Messages deleted even after 9999 messages

Bug affects

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

Additional information & file uploads

Search delay has been set to 7500 ms and I wasn't rate limited.
I used the pattern field to use regex matching to delete particular messages. The expression was in this format: (word1|word2|word3)

@sudoAlphaX
Copy link
Author

Additional Info: I tried this script thrice and it fails to delete messages after 10000 messages. Hence I have arrived at the conclusion that it fails after the 9999 limit

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

1 participant