Code Monkey home page Code Monkey logo

delete-discord-direct-messages's Introduction

Mass-Delete-Discord-Messages

You can use this through either Discord's desktop app or through the browser.

Instructions are also found as comments in the code.

For lastmsg, go to the message you want the code to start at and 'Copy ID'

For youruser, this is your Discord name. Do not include the # symbol or the four numbers after it.

For authToken, 1. On your browser go to any discord conversation/server. Press F12. 1.On the desktop app, the dev tool key is CTRL + SHIFT + i. 3.Delete a message. Under the 'Network' tab, should be the last entry but look for the shortest entry 4.It should be an entry of JUST numbers 5.Scroll down to 'Request Headers' on the right me 6.Look for 'authorization'. Thats your authToken. DO. NOT. SHARE. THIS. KEY. At all. With anyone.

For channel, this is the ~18 digit number on the url browser version of discord. You will need to acces the conversation through browser to get this number.


The code only tracks how many messages it deletes of yours. You can add a variable like i to keep track of how many messages the other person has sent. This is not necessary, and WILL make your console.log spam. Be careful.

Feel free to PM me if you have any questions about Altoids1 code, or my updated version.

Do not repost this code, or Altoids1, without credit. Don't be a dick.

Altoid1's Code: https://gist.github.com/CarletonStuberg/0c838a6248772c6fea1339ddad503cce#gistcomment-2774603

delete-discord-direct-messages's People

Contributors

theoutride avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.