https://github.com/urpagin/selfbotdiscordclear
A small Discord selfbot that allows the deletion of own messages.
https://github.com/urpagin/selfbotdiscordclear
bot clear cli common-errors delete deleter discord discord-api discord-self installation linux macos message-deletion own-messages python rate-limiting selfbot token-management usage windows
Last synced: about 2 months ago
JSON representation
A small Discord selfbot that allows the deletion of own messages.
- Host: GitHub
- URL: https://github.com/urpagin/selfbotdiscordclear
- Owner: Urpagin
- Created: 2023-07-16T14:47:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-17T15:40:42.000Z (almost 3 years ago)
- Last Synced: 2025-10-24T19:45:00.738Z (8 months ago)
- Topics: bot, clear, cli, common-errors, delete, deleter, discord, discord-api, discord-self, installation, linux, macos, message-deletion, own-messages, python, rate-limiting, selfbot, token-management, usage, windows
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SelfbotDiscordClear
A neat Discord selfbot that allows the deletion of own messages.

## Table of contents
- [Installation](#installation)
- [Usage](#usage)
- [Common Errors](#common-errors)
- [Legal](#legal)
## Installation
### 🪟 Windows
1. Download the latest release [here](https://github.com/Urpagin/SelfbotDiscordClear/releases/latest)
2. Get your Discord token
How to get your Discord token
https://www.youtube.com/watch?v=YEgFvgg7ZPI
(mirror) https://www.youtube.com/watch?v=LnBnm_tZlyU
3. Paste your Discord token into the app's terminal
4. See [Usage](#usage)
### 🐧 Linux/Mac/Source 🍎
You'll need to build from source
1. Install [Python](https://www.python.org/downloads/) (at the time Python 3.10 is required)
2. Clone the repository
```shell
git clone https://github.com/Urpagin/SelfbotDiscordClear.git
```
3. Go in the directory SelfbotDiscordClear and install dependencies
```shell
pip install -r requirements.txt
```
4. Launch the app
```shell
python main.py
```
5. Get your token in the [Windows](#-windows) section then see [Usage](#usage)
## Usage
🛑 **`!clearr` not `!clear`, don't forget the 2 RRs**
### ⚒️ How to use ⚒️
- `!clearr `
- ``: (integer) the amount of own messages to delete
- ``: (boolean) if true, deletes only messages containing links
### 📜 Examples 📜
- `!clearr 10 1` will delete 10 of your messages containing links
- `!clearr -1` will delete ALL of your messages (may take a long time)
- `!clearr -1 1` will delete ALL of you messages that contain links (may take a long time)
## Common errors
1. `WARNING discord.gateway Gateway is ratelimited, waiting 57.50 seconds.`
You may not be able to delete any messages during the timespan specified, wait and it will pass.
2. `WARNING discord.http We are being rate limited. DELETE https://discord.com/api/v9/channels//messages/ responded with 429. Retrying in 1.53 seconds.`
This is a non issue as mass deleting messages isn't the normal behavior of a user, wait and it will pass.
## Legal
Selfbots are against Discord's Terms of Service.
> **Automating normal user accounts (generally called "self-bots") outside of the OAuth2/bot API is forbidden, and can result in an account termination if found.**
https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-