From 04f5050bbe4fbd65817def3a635f1debe644c6ab Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Mon, 6 Feb 2023 15:39:51 +0200 Subject: [PATCH] Extend token guide Closes #955 --- .../Commands/GuideCommand.cs | 9 +++++---- .../Views/Components/DashboardView.xaml | 20 +++++++++++++------ DiscordChatExporter.Gui/Views/RootView.xaml | 6 +++--- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/DiscordChatExporter.Cli/Commands/GuideCommand.cs b/DiscordChatExporter.Cli/Commands/GuideCommand.cs index 4e08d501..e9f08b8c 100644 --- a/DiscordChatExporter.Cli/Commands/GuideCommand.cs +++ b/DiscordChatExporter.Cli/Commands/GuideCommand.cs @@ -21,10 +21,11 @@ public class GuideCommand : ICommand console.Output.WriteLine(" 3. Press Ctrl+Shift+I to show developer tools"); console.Output.WriteLine(" 4. Navigate to the Network tab"); console.Output.WriteLine(" 5. Press Ctrl+R to reload"); - console.Output.WriteLine(" 6. Search for a request containing \"messages?limit=50\" or similar"); - console.Output.WriteLine(" 7. Select the Headers tab on the right"); - console.Output.WriteLine(" 8. Scroll down to the Request Headers section"); - console.Output.WriteLine(" 9. Copy the value of the \"authorization\" header"); + console.Output.WriteLine(" 6. Switch between random channels to trigger network requests"); + console.Output.WriteLine(" 7. Search for a request containing \"messages?limit=50\" or similar"); + console.Output.WriteLine(" 8. Select the Headers tab on the right"); + console.Output.WriteLine(" 9. Scroll down to the Request Headers section"); + console.Output.WriteLine(" 10. Copy the value of the \"authorization\" header"); console.Output.WriteLine(); // Bot token diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml b/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml index 1be07693..8b3c07f9 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.xaml @@ -150,7 +150,10 @@ Foreground="{DynamicResource PrimaryHueMidBrush}" Kind="Account" /> - + @@ -175,19 +178,21 @@ - + + + - + - + - + @@ -200,7 +205,10 @@ Foreground="{DynamicResource PrimaryHueMidBrush}" Kind="Robot" /> - + diff --git a/DiscordChatExporter.Gui/Views/RootView.xaml b/DiscordChatExporter.Gui/Views/RootView.xaml index 2d718a00..54fe6b75 100644 --- a/DiscordChatExporter.Gui/Views/RootView.xaml +++ b/DiscordChatExporter.Gui/Views/RootView.xaml @@ -2,14 +2,14 @@ x:Class="DiscordChatExporter.Gui.Views.RootView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:s="https://github.com/canton7/Stylet" xmlns:viewModels="clr-namespace:DiscordChatExporter.Gui.ViewModels" - xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters" - Width="600" - Height="550" + Width="625" + Height="575" MinWidth="325" d:DataContext="{d:DesignInstance Type=viewModels:RootViewModel}" Background="{DynamicResource MaterialDesignPaper}"