mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-01-29 06:10:54 +00:00
083a346676648f776568f13cc233c0c6f07f1793
DiscordChatExporter
Command line executable that can export Discord channel chat logs to a pretty HTML file.
Screenshots
Features
- Produces output styled similar to the Discord's light theme
- Displays user avatars
- Groups messages by author and time
- Handles Discord markdown characters
- Converts URLs to links
- Inlines attached images with a link to the full version
- Inserts download links for other types of attached files
- Marks edited messages with a timestamp
Usage
The program expects an access token and channel ID as parameters.
DiscordChatExporter.exe /token:REkOTVqm9RWOTNOLCdiuMpWd.QiglBz.Lub0E0TZ1xX4ZxCtnwtpBhWt3v1 /channelId:459360869055190534
Getting access token:
- Open Discord desktop or web client
- Press
Ctrl+Shift+I - Navigate to
Storage > LocalStorage > discordapp.com - Find the value for
tokenand extract it
Getting channel ID:
- Open Discord desktop or web client
- Navigate to any DM or server channel
- Extract the current URL:
- If using desktop client, press
Ctrl+Shift+I, typewindow.location.hrefin console and extract the result - If using web client, just take the current URL from the address bar
- If using desktop client, press
- Pull the ID from the URL:
- If it's a DM channel, the format looks like this:
https://discordapp.com/channels/@me/CHANNEL_ID - If it's a server channel, the format looks like this:
https://discordapp.com/channels/WHATEVER/CHANNEL_ID
- If it's a DM channel, the format looks like this:
Libraries used
Languages
C#
90.9%
HTML
8.5%
PowerShell
0.3%
Dockerfile
0.3%
