From 083a346676648f776568f13cc233c0c6f07f1793 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Mon, 28 Aug 2017 23:28:10 +0300 Subject: [PATCH] Improve the usage section in readme --- Readme.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index e33acc7..038ee5f 100644 --- a/Readme.md +++ b/Readme.md @@ -19,13 +19,28 @@ Command line executable that can export [Discord](https://discordapp.com) channe ## Usage -Executing the application requires an access token and channel ID as parameters. +The program expects an access token and channel ID as parameters. -You can get your token by opening the Discord app, pressing `Ctrl+Shift+I`, navigating to `Storage > LocalStorage > discordapp.com` and extracting `token`'s value. +`DiscordChatExporter.exe /token:REkOTVqm9RWOTNOLCdiuMpWd.QiglBz.Lub0E0TZ1xX4ZxCtnwtpBhWt3v1 /channelId:459360869055190534` -You can get the channel ID by enabling `Developer Mode` in `Settings > Appearance` and then right clicking on the channel and clicking on `Copy ID`. +### Getting access token: -- `DiscordChatExporter.exe /token:REkOTVqm9RWOTNOLCdiuMpWd.QiglBz.Lub0E0TZ1xX4ZxCtnwtpBhWt3v1 /channelId:459360869055190534` +- Open Discord desktop or web client +- Press `Ctrl+Shift+I` +- Navigate to `Storage > LocalStorage > 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` ## Libraries used