Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Wanna work abroad

Yuki Hirai yukihirai0505

:octocat:
Wanna work abroad
View GitHub Profile
@yukihirai0505
yukihirai0505 / deleteDiscordMessages.js
Created Jun 12, 2019 — forked from victornpb/deleteDiscordMessages.js
Delete all your messages from DM or Channel in Discord
View deleteDiscordMessages.js
let authToken = ''
let authorId = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.user_id_cache.replace(/"/g, "")
let channelId = window.location.href.split('/').pop()
let afterMessageId = ''
/**
* Delete all messages in a Discord channel or DM
*/
function deleteMessages() {
const start = new Date();