https://github.com/evmar/discord-clean
delete entries on discord
https://github.com/evmar/discord-clean
Last synced: about 1 year ago
JSON representation
delete entries on discord
- Host: GitHub
- URL: https://github.com/evmar/discord-clean
- Owner: evmar
- Created: 2022-10-10T23:13:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T19:48:44.000Z (over 2 years ago)
- Last Synced: 2025-01-24T18:45:46.182Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This little program deletes some users' messages from a Discord channel.
I used it so Discord wouldn't have an archive of my old chats. Who can say
whether they actually delete them server-side, though!
## Server-side setup
Discord unfortunately does not let software act on behalf of a user directly,
but instead allows software to show up as "bots". You then must be a server
admin to be able to grant the bot user access to delete your messages.
1. Create a Discord "app" via the
[developer portal](https://discord.com/developers/applications).
2. Bot -> Add Bot.
1. Reset Token, then save the generated token for use below.
3. OAuth2 -> URL Generator.
1. Tick `bot`.
2. Add ... some set of OAuth2 scopes (I forget already, eek).
3. Open the generated URL in your browser to add the bot to your server.
## Client-side execution
```
$ go build .
$ ./discord-clean -token="$TOKEN" -users="evmar#1234,jon#4231"
```