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.
This comes up when i try it: 315886931110264832:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
Its the channel id and i dont know what to do, can someone edit the script so it works?
var authToken = '"MjEyNDgzMTU5NjU5MzgwNzM5.DEDaLw.8DjkQp4G1OHWPvZs4dWK7YgnkXw"'
if (typeof(blockedAuthors) === 'undefined') {
var blockedAuthors = []
}
clearMessages = function() {
const channel = window.location.href.split('/').pop()
const baseURL =
https://discordapp.com/channels/315886931110264832/315886931110264832
const headers = { Authorization: authToken }
}
function neverEndingStory(){
clearMessages()
}
neverEndingStory()