How to log in to Discord to using Rich Presence in desktop app

tutorials

Guide to log in to Discord in SimpMusic desktop app

SimpMusic can show what you're listening to on your Discord profile through Rich Presence. On Android this happens through an in-app login, but the desktop app has no built-in Discord login browser — so instead you grab your Discord token once and paste it into SimpMusic.

This guide walks you through it.

⚠️ Read this first — your token is like your password

A Discord token gives full access to your account. Anyone who has it can log in as you without your password or 2FA.

  • Never share it, screenshot it, or paste it anywhere except SimpMusic's token field.

  • If you ever leak it by accident, change your Discord password immediately — that invalidates all existing tokens.

  • Only run console code you understand. Discord even warns you about this in the console ("Self-XSS"). The one snippet below only reads your token — it sends nothing anywhere — but never paste random code a stranger gives you.


Step 1 — Open Discord in your browser

Go to discord.com/app and make sure you're logged in.

The token lives in the web version. The desktop Discord client works too, but the browser is the easiest place to do this.

Step 2 — Open Developer Tools

Press F12 (or Ctrl + Shift + I on Windows/Linux, Cmd + Option + I on macOS) to open Developer Tools, then click the Console tab.

Step 3 — Get your token

Paste this 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

The console prints your token — a long string in quotes, like "MTIzNDU2Nzg5...". Copy it (without the surrounding quotes).

"Paused by debugger" got in the way?
Open the Sources tab, and toggle off the breakpoint button (or press the pause/resume icon) so the script isn't interrupted, then try Step 3 again.

Step 4 — Paste it into SimpMusic

In the desktop app:

  1. Go to Settings → Discord integration.

  2. Tap Log in to Discord.

  3. Paste your token into the field and confirm.

  4. Turn on Enable rich presence.

That's it — SimpMusic verifies the token, and once you're playing something it shows up on your Discord profile. If the token is wrong or expired, the app rejects it rather than silently saving, so you'll know right away.


Troubleshooting

  • The snippet returned nothing / undefined. Discord updates its internals from time to time. Refresh the page and try again, and make sure you're on discord.com/app (logged in), not the marketing homepage.

  • Rich Presence isn't showing. Check that Enable rich presence is on in SimpMusic, and that Discord itself has Settings → Activity Privacy → Display current activity enabled.

  • It logged me out later. Changing your Discord password (or logging out everywhere) invalidates the token. Just grab a fresh one with the same steps.

A note on why it works this way

Discord doesn't offer a normal OAuth login for third-party Rich Presence from a desktop music app, so SimpMusic uses your account token directly — the same approach every "custom Rich Presence" tool uses. It's read-only as far as SimpMusic is concerned: it sets your activity status and nothing else. Still, because the token is powerful, treat it with the same care you'd give your password.