a script that finds closed direct messages on your discord account and deletes your messages in them
discord doesn't expose closed dms through the api, so the script takes the list of conversations from your data package, which you can request in account settings. then it compares that list with your open dms and cleans the ones that are closed
the script uses a user token, not a bot token, which violates discord's terms of service, your account may get banned. use at your own risk
- request your data package in discord: settings -> privacy & safety -> request my data
- unpack the archive and put the
messagesfolder next tomain.py
- install dependencies:
pip install discord.py-self
- put your token into
main.py
python main.py
there is a 2-4 second pause between deletions to avoid discord rate limits (however if you still hit them, close the script, wait about 20 seconds and run it again)
- finds closed dms using the data package
- shows the names of the people you talked to
- deletes only your own messages
- prints the total number of deleted messages at the end
скрипт, который находит закрытые личные сообщения в твоём дс аккаунте и удаляет в них твои соо
дс не отдаёт закрытые лички через апи, поэтому скрипт берёт список диалогов из пакета данных, который можно запросить в настройках аккаунта. дальше он сравнивает его с открытыми личками и чистит те, что закрыты
скрипт использует токен пользователя, а не бота, что нарушает условия использования дискорда, аккаунт могут заблокировать. используйте на свой страх и риск
- запроси пакет данных в discord: настройки -> конфиденциальность и безопасность -> запросить мои данные
- распакуйте архив и положи папку
messagesрядом сmain.py
- установите зависимости:
pip install discord.py-self
- вставь свой токен в
main.py
python main.py
между удалением соо стоит пауза 2-4 секунды, чтобы не словить лимиты дса (однако если вдруг словите, закройте скрипт, подождите +-20 секунд, и запустите его снова)
- ищет закрытые лички по пакету данных
- показывает имена собеседников
- удаляет только твои сообщения
- в конце пишет, сколько всего удалено


