From 609ca0fc0d84325ae92ca8a12f301bc93aa6955b Mon Sep 17 00:00:00 2001
From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Date: Fri, 9 Jun 2023 01:19:36 +0300
Subject: [PATCH] Simplify guide for extracting channel IDs
---
.docs/Token-and-IDs.md | 24 ++-----------------
.../Commands/GuideCommand.cs | 16 ++-----------
2 files changed, 4 insertions(+), 36 deletions(-)
diff --git a/.docs/Token-and-IDs.md b/.docs/Token-and-IDs.md
index aaf74a9f..bcebc82d 100644
--- a/.docs/Token-and-IDs.md
+++ b/.docs/Token-and-IDs.md
@@ -234,29 +234,9 @@ Prerequisite step: Navigate to [discord.com](https://discord.com) and login.
---
-## How to get a Server ID or a Server Channel ID
+## How to get a Server ID or a Channel ID
1. Open Discord Settings
2. Go to the **Advanced** section
3. Enable **Developer Mode**
-4. Right-click on the desired server or channel and click Copy ID
-
-## How to get a Direct Message Channel ID
-
-1. Click the three dots next to any message in the channel you want to export.
-2. Paste the link into a text editor.
-3. Copy the text in the highlighted part of the link.
-
-> E.g. in https꞉//discord.com/channels/@me/**189716987098470**/0985709387059874, you should copy **189716987098470**
-
-Make sure you're not copying the user's ID.
-
-**Alternatively, you can also:**
-
-1. Open the desired direct message channel
-2. Press Ctrl+Shift+I (⌥+⌘+I on macOS) on Discord to show developer tools
-3. Navigate to the `Console` tab
-4. Type `window.location.href` and press Enter
-5. Copy the first long sequence of numbers inside the URL
-
-> E.g. in https꞉//discord.com/channels/@me/**84289740160**, you should copy **84289740160**
+4. Right-click on the desired server or channel and click Copy Server ID or Copy Channel ID
\ No newline at end of file
diff --git a/DiscordChatExporter.Cli/Commands/GuideCommand.cs b/DiscordChatExporter.Cli/Commands/GuideCommand.cs
index e7ab2b19..ff01d8f6 100644
--- a/DiscordChatExporter.Cli/Commands/GuideCommand.cs
+++ b/DiscordChatExporter.Cli/Commands/GuideCommand.cs
@@ -41,25 +41,13 @@ public class GuideCommand : ICommand
// Guild or channel ID
using (console.WithForegroundColor(ConsoleColor.White))
- console.Output.WriteLine("To get guild ID or guild channel ID:");
+ console.Output.WriteLine("To get guild ID or channel ID:");
console.Output.WriteLine(" 1. Open Discord");
console.Output.WriteLine(" 2. Open Settings");
console.Output.WriteLine(" 3. Go to Advanced section");
console.Output.WriteLine(" 4. Enable Developer Mode");
- console.Output.WriteLine(" 5. Right click on the desired guild or channel and click Copy ID");
- console.Output.WriteLine();
-
- // Direct message channel ID
- using (console.WithForegroundColor(ConsoleColor.White))
- console.Output.WriteLine("To get direct message channel ID:");
-
- console.Output.WriteLine(" 1. Open Discord");
- console.Output.WriteLine(" 2. Open the desired direct message channel");
- console.Output.WriteLine(" 3. Press Ctrl+Shift+I to show developer tools");
- console.Output.WriteLine(" 4. Navigate to the Console tab");
- console.Output.WriteLine(" 5. Type \"window.location.href\" and press Enter");
- console.Output.WriteLine(" 6. Copy the first long sequence of numbers inside the URL");
+ console.Output.WriteLine(" 5. Right-click on the desired guild or channel and click Copy Server ID or Copy Channel ID");
console.Output.WriteLine();
// Docs link