Skip to content

Instantly share code, notes, and snippets.

@MarvNC
Last active July 27, 2026 10:59
Show Gist options
  • Select an option

  • Save MarvNC/e601f3603df22f36ebd3102c501116c6 to your computer and use it in GitHub Desktop.

Select an option

Save MarvNC/e601f3603df22f36ebd3102c501116c6 to your computer and use it in GitHub Desktop.
How to Get Your Discord Token From the Browser Developer Console

How to Get Your Discord Token From the Browser Console

  1. Open the browser developer tools (F12 or Ctrl + Shift + I) and click the Console tab.
  2. Paste the following code into the console and press Enter:
(w=webpackChunkdiscord_app).push([[Symbol()],{},o=>{try{Object.values(o.c).some(e=>e.exports?.setToken&&(w.t=e.exports.getToken()))}catch{}}]),w.t

(Contributed by @Risim-hanse)

@MarvNC

MarvNC commented Jul 16, 2026

Copy link
Copy Markdown
Author

Updated, thanks @Risim-hanse

@Kameil

Kameil commented Jul 26, 2026

Copy link
Copy Markdown

it's works fine thx

@mootari

mootari commented Jul 27, 2026

Copy link
Copy Markdown

You can avoid the try/catch and the global:

(t=>(webpackChunkdiscord_app.push([[Symbol()],{},o=>t??=Object.values(o.c??{}).find(e=>e.exports.setToken)?.exports.getToken()]),t))()

Formatted:

(t => (webpackChunkdiscord_app.push([
  [Symbol()],
  {},
  o => t ??= Object.values(o.c ?? {}).find(e => e.exports.setToken)?.exports.getToken()
]), t))()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment