Skip to content

Commit

Permalink
Update instructions to obtain token
Browse files Browse the repository at this point in the history
Fixes Tyrrrz#76
  • Loading branch information
Tyrrrz authored and DaKing committed Jan 8, 2019
1 parent 9becf32 commit fc4a3af
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
10 changes: 4 additions & 6 deletions DiscordChatExporter.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ private static void PrintTokenHelp()
Console.WriteLine(" 1. Open Discord app");
Console.WriteLine(" 2. Log in if you haven't");
Console.WriteLine(" 3. Press Ctrl+Shift+I to show developer tools");
Console.WriteLine(" 4. Navigate to the Network tab");
Console.WriteLine(" 5. Filter the requests to XHR only");
Console.WriteLine(" 6. Go to any channel or server");
Console.WriteLine(" 7. Find a request that starts with \"messages\"");
Console.WriteLine(" 8. Click on Headers tab");
Console.WriteLine(" 9. Look for \"authorization\" among request headers and copy its value");
Console.WriteLine(" 4. Press Ctrl+R to trigger reload");
Console.WriteLine(" 5. Navigate to the Application tab");
Console.WriteLine(" 6. Select \"Local Storage\" > \"https://discordapp.com\" on the left");
Console.WriteLine(" 7. Find \"token\" under key and copy the value");
Console.WriteLine();
Console.WriteLine("# To get bot token:");
Console.WriteLine(" 1. Go to Discord developer portal");
Expand Down
31 changes: 14 additions & 17 deletions DiscordChatExporter.Gui/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,26 +233,23 @@
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="Ctrl+Shift+I" />
<Run Text="to show developer tools" />
<LineBreak />
<Run Text="4. Navigate to the" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="Network" />
<Run Text="tab" />
<LineBreak />
<Run Text="5. Filter the requests to" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="XHR" />
<Run Text="only" />
<Run Text="4. Press" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="Ctrl+R" />
<Run Text="to trigger reload" />
<LineBreak />
<Run Text="6. Go to any channel or server" />
<LineBreak />
<Run Text="7. Find a request that starts with" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="&quot;messages&quot;" />
<LineBreak />
<Run Text="8. Click on" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="Headers" />
<Run Text="5. Navigate to the" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="Application" />
<Run Text="tab" />
<LineBreak />
<Run Text="9. Look for" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="&quot;authorization&quot;" />
<Run Text="among request headers and copy its value" />
<Run Text="6. Select" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="Local Storage" />
<Run Text="&gt;" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="https://discordapp.com" />
<Run Text="on the left" />
<LineBreak />
<Run Text="7. Find" />
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="token" />
<Run Text="under key and copy the value" />
</TextBlock>
</StackPanel>

Expand Down

0 comments on commit fc4a3af

Please sign in to comment.