Updated "How to get a User Token" to reflect the disabling of the dev tools in the desktop app: updated default instructions to web browser and mention the settings.json option on the desktop app. Removed unnecessary URL from anchors

Yudi
2022-01-27 10:24:28 -03:00
parent 4f4fbeaa4a
commit 4e89bb1566

@@ -3,21 +3,22 @@
A token gives <u>full access</u> to an account.
To reset a user token, change your account password.
To reset a bot token, click on "[Regenerate](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs#how-to-get-a-bot-token)".
To reset a bot token, click on "[Regenerate](#how-to-get-a-bot-token)".
#
**Index**
* [How to get a User Token](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs#how-to-get-a-user-token)
* [How to get a Bot Token](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs#how-to-get-a-bot-token)
* [How to get Server IDs and Server Channel IDs](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs#how-to-get-a-server-id-or-a-server-channel-id)
* [How to get a Direct Message Channel ID](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs#how-to-get-a-direct-message-channel-id)
* [How to get a User Token](#how-to-get-a-user-token)
* [How to get a Bot Token](#how-to-get-a-bot-token)
* [How to get Server IDs and Server Channel IDs](#how-to-get-a-server-id-or-a-server-channel-id)
* [How to get a Direct Message Channel ID](#how-to-get-a-direct-message-channel-id)
#
### How to get a User Token
> Automating user accounts is technically against TOS, use at your own risk.
**1.** Open Discord
#### Through your web browser
**1.** Open Discord in your **web browser** and login
**2.** Press **Ctrl+Shift+I** (⌥⌘I on macOS) to open **developer tools**
**3.** Press **Ctrl+Shift+M** (⇧⌘M) to toggle **device toolbar**
**4.** Navigate to the **Application** tab
@@ -28,6 +29,30 @@ To reset a bot token, click on "[Regenerate](https://github.com/Tyrrrz/DiscordCh
> Still can't copy your token? [Try these instructions instead](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Troubleshooting#i-cant-findcopy-my-token).
#### Through the desktop app
**1.** Find and open `settings.json` in your preferred text editor.
**Windows:** Press **Windows+R** and paste `%appdata%/discord` into the text box, then press Enter. Look for the file in the newly opened window.
**macOS:** Open Finder, press **⇧⌘G** and paste `~/Library/Application Support/discord/settings.json` into the text box, then press Return.
**Linux:** The path is `~/.config/discord/settings.json`.
**2.** Add `"DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true,` to the second line, below the open curly bracket`{`.
Your file should look similar to this:
```json
{
"DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true,
"BACKGROUND_COLOR": "#202225",
"IS_MAXIMIZED": true,
...
}
```
> Do not copy and paste the entire block of code above, edit only the second line.
**4.** Restart Discord.
**5.** [Follow from step 2 of the "Through your web browser" section](#through-your-web-browser).
***
@@ -60,6 +85,6 @@ To reset a bot token, click on "[Regenerate](https://github.com/Tyrrrz/DiscordCh
**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**
> E.g. in https//discord.com/channels/@me/**189716987098470**/0985709387059874, you should copy **189716987098470**
Make sure you're not copying the user's ID.