Message search returns 401 Unauthorized before deletion
Author: PestermessCreated Jul 17, 2024Updated Jun 29, 2026
Undiscord Version
5.2.3
Browser
Firefox
Extension
Violentmonkey
Reproduction steps
- Open Discord.
- Open the Undiscord extension.
- Click Author ID.
- Click Server ID.
- Click Delete.
Actual results
The extension immediately fails while searching for messages and returns:
Fetching messages...
Error searching messages, API responded with status 401!
{"message":"401: Unauthorized","code":0}
CoreException {}Expected results
The extension should search for my messages and begin deleting them instead of returning a 401 Unauthorized error.
Bug affects
- DMs
- Group DMs
- Channels
- NSFW Channels
Additional information
The issue occurs consistently and prevents the extension from searching or deleting any messages.
Source: victornpb/undiscord