Undiscord is a browser-based tool that deletes all messages from a Discord channel or direct message conversation by running a self-contained JavaScript snippet in the developer console. The script leverages the user's existing browser session, including cookies and authentication tokens, to impersonate the user and execute Discord API calls without re-authentication.
The tool deletes messages one by one via Discord's REST API endpoints, processing each response before sending the next request, and implements custom delay logic between API calls to avoid Discord's rate-limiting thresholds. It also adds a clickable button to the Discord web interface by manipulating the Document Object Model to initiate the deletion process.
The entire deletion logic is delivered as a single-page script that runs entirely in the client's browser environment, requiring no external dependencies or server-side components. The tool is distributed as a self-contained JavaScript snippet that users copy and paste into their browser's developer console.