DISCLAIMER

The author of this script takes ABSOLUTELY NO RESPONSIBILITY for your own actions or usage of the script, and if you do choose to use this script, you do so ENTIRELY AT YOUR OWN RISK.

This script uses Discord's undocumented user API, which has no official public documentation and is not intended to be used by anyone other than Discord's own internal developers. It is a self-botting script, meaning that it automates actions acting as though the user themselves were performing them manually.

Self-botting is explicitly forbidden by the Discord Trust & Safety Team and can result in an account termination if found. Therefore, it's not unlikely that using this script may incur a ban on your account. Discord's explicit condemnation of self-botting can be found here

Usage

Pre-requisites

  • python-3.7 or later
  • Python libraries:
    • asyncio
    • aiohttp
    • dotenv

You will also need to know to your Discord token. The steps to find this can be found here. Note that your Discord token gives anyone who has it access to your account, so ensure that you do not share your Discord token with anyone, under any circumstances.

Setup

  1. Clone this repository.
git clone https://github.com/0hAodha/purge_discord
  1. Navigate to the newly created purge_discord directory on your machine.
  2. Edit the .env file and replace the DISCORD_TOKEN placeholder value with your actual Discord token. It should look something like the following:
DISCORD_TOKEN=AAAAAAAAAAAAAAAAAAAAAAAAAA.BBBBBB.CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
Description
A self-botting Python script which purges all of the user's messages in a given Discord server
Readme GPL-3.0 281 KiB
Languages
Python 100%