Skip to content

Commit 5e0e4d1

Browse files
committed
Update token instructions
1 parent fc366c7 commit 5e0e4d1

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

docs/authenticating.rst

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,6 @@ Tokens
1010

1111
Tokens are how we authenticate with Discord. User accounts use the same token system as bots, received after authenticating with the Discord API.
1212

13-
They follow this format:
14-
15-
.. list-table:: Discord Token
16-
:header-rows: 1
17-
18-
* -
19-
- MjQ1NTU5MDg3NTI0MjE2ODMy
20-
- DulyxA
21-
- brcD2xRAqjACTuMcGPwy4TWVQdg
22-
* - **Decode**
23-
- :func:`base64.b64decode`
24-
- :func:`base64.b64decode` + 1293840000
25-
- N/A
26-
* - **Output**
27-
- User ID
28-
- Unix TS
29-
- HMAC
30-
3113
How do I obtain mine?
3214
----------------------
3315
The library does not yet support authenticating traditionally, so you will have to obtain your token manually.
@@ -36,7 +18,7 @@ To obtain your token from the Discord client, the easiest way is pasting this in
3618

3719
.. code:: js
3820
39-
(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m => m?.exports?.default?.getToken).exports.default.getToken()
21+
(()=>{for(let e of Object.values(webpackChunkdiscord_app.push([[Symbol()],{},e=>e.c])))try{if(!e.exports||e.exports===window)continue;if(e.exports?.getToken)return e.exports.getToken();for(let t in e.exports)if(e.exports?.[t]?.getToken&&"IntlMessagesProxy"!==e.exports[t][Symbol.toStringTag])return e.exports[t].getToken()}catch{}})();
4022
4123
4224
Or, you can do it manually:

0 commit comments

Comments
 (0)