You have to know how to use your browser developer tools to use this thechnique.
The URL must be like https://discordapp.com/channels/XXXXXXX
and not https://discordapp.com/channels/XXXXXXXXX/YYYYYYYY
. If so, change it manually. Once on the right page, you must not reload or navigate.
- Open the dev tools (F12), open the Network tab. (You should clear all requests for better readability if you see some.)
- Delete one message manually. In the request log, you will see a request with a
DELETE
method. - Click on the request to open the details, and on the Headers tab, copy the 'authorization' thoken. It's a long text with dots like
MTX5MzQ1MjAyMjU0NjA2MzM2.ROFLMAO.UvqZqBMXLpDuOY3Z456J3JRIfbk
.
Edit the javascript code from this tutorial in a text editor.
Find the line starting with with var authToken =
and paste the token. Pay attention to the quotes. The code should read like this :
// Paste your token between the quotes :
var authToken = 'MTX5MzQ1MjAyMjU0NjA2MzM2.ROFLMAO.UvqZqBMXLpDuOY3Z456J3JRIfbk'
This script will only delete the messages that are visible. So, if you want to delete more messages, you should scroll top to show more of them before launch. If you do not have the permissions to delete some messages, the script should still work with yours (not tested).
Copy the full code that you have edited, paste it into the browser javascript console and watch your messages being deleted.
@flxtrsh sure, I am finding this problem and solution for the first time. I don't like how hard Discord is making it to delete information. Seems awfully big-data to me, like they are hoping for a FB purchase lol.
[New on GitHub! View my edit history for all the dumb things I've said!]
To obtain the Before ID, click the vertical ellipsis "..." next to the reaction icon in the upper-right corner of a message. Then select "copy ID" from the list, and paste away.
If it stops working for a while, then it has timed out due to Discord rate limiting. This is one way they protect their service from DDoS-like behaviour. So just open your Network tab in Firebug / Inspector / Developer Tools, and look at a response header coded "429." This is how Apache servers say "fuck off for a while ok" and the retry-in header should tell you how many milliseconds to wait, often around 120 seconds in this case.
I'm glad to have all my server testing bot spam removed. Shame I couldn't just delete the channel without expiring all my links. Going to use a subdomain and just start 301'ing my invite links from now on. Lesson learned.