feat: discord rich presence

Client 1.3.0 shows "Playing Burrow" on the player's Discord profile while
the game is open: where they are (the game's ajPresence, dens and player
parties never named), the time since they started and a button to the
download page. It goes through the Discord app's local IPC socket (no
packages; Windows pipe, Linux and macOS sockets, Flatpak and Snap too) and
retries quietly while Discord is not running. The server names its Discord
application in its flashvars (discordAppId); none, no presence.
This commit is contained in:
Burrowdev committed 2026-10-18 18:52:34 +03:00
1 parent 164e2e8adc
commit 92c5042c5e
5 files changed
+218

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ const sendWhitelist = new Set()
.add("initialized")
.add("fps")
.add("openPage")
.add("presence")
.add("printImage")
.add("reloadGame")
.add("reportError")