Discord Archiver

This tool connects to a Discord channel through a bot account and creates an offline HTML archive of all messages and users.

Description

Discord is a nice and generally pleasant to use chat service, but I still don’t really trust them long-term with my data and I regularly delete old channels and messages from my Discord server. I wrote this script to be able to create complete local archives of Discord channels. It uses the Discord API to log into the channel and fetch all messages with their associated metadata. The results are stored into a one-file HTML archive that embeds all avatars, attachments etc. as data URIs.