Exports Discord chat logs to a file
Find a file
Alexey Golub 95d581797b Add dark theme and theme switch (#4)
* Add dark theme

* Refactor a bit

* Add back Light theme and add a switch

* Update readme
2017-09-01 15:45:19 +03:00
DiscordChatExporter Add dark theme and theme switch (#4) 2017-09-01 15:45:19 +03:00
.gitattributes Add .gitignore and .gitattributes. 2017-07-11 20:29:27 +03:00
.gitignore Add .gitignore and .gitattributes. 2017-07-11 20:29:27 +03:00
DiscordChatExporter.sln Add license and readme 2017-07-12 20:18:00 +03:00
License.txt Add license and readme 2017-07-12 20:18:00 +03:00
Readme.md Add dark theme and theme switch (#4) 2017-09-01 15:45:19 +03:00

DiscordChatExporter

Command line executable that can export Discord channel chat logs to a pretty HTML file.

Screenshots

Download

Features

  • Supports both dark and 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. At minimum, the execution should look like this:

DiscordChatExporter.exe /token:REkOTVqm9RWOTNOLCdiuMpWd.QiglBz.Lub0E0TZ1xX4ZxCtnwtpBhWt3v1 /channelId:459360869055190534

Getting access token

  • Open Discord desktop or web client
  • Press Ctrl+Shift+I
  • Navigate to Application > Storage > Local Storage > https://discordapp.com
  • Find the value for token and 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, type window.location.href in console and extract the result
    • If using web client, just take the current URL from the address bar
  • 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

Optional arguments

  • /theme:[Dark/Light] - sets the style of the output

Libraries used