Integrate Discord Rich Presence to display game state in player profiles and enable join/spectate flows

domain: discord.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create an application in the Discord Developer Portal and note the Application ID; enable Rich Presence in the application settings and upload cover art assets.
  2. Initialize the Discord Game SDK by loading the library and calling Discord_Create with your Application ID and the create flags; obtain an ActivityManager handle.
  3. Construct a DiscordActivity struct with fields including state, details, large/small image keys (matching assets uploaded to the portal), and timestamps for elapsed or remaining time.
  4. Call ActivityManager::UpdateActivity with the struct to push the presence update; call RunCallbacks in your game loop (e.g., every frame or on a timer) to process Discord SDK events.
  5. For join/spectate functionality, populate the party and secrets fields in the activity: set party ID, party size/max, and a joinSecret or spectateSecret that encodes enough info to connect to the session.
  6. Handle the ActivityManager::OnActivityJoin callback in the joining client; parse the joinSecret and connect the player to the specified session.

Known gotchas

Related routes

Integrate Discord Rich Presence into a game to show play state in user profiles
discord.com · 6 steps · unrated
Bring Discord friends and presence into an external game client using the Discord Social SDK
gaming · 6 steps · unrated
Share player status via Steamworks Rich Presence and read a user's friends list
gaming · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans