A simple implementation of fetching the exact same game icon as would end up being used when playing it natively on Windows, straight from Discord's CDN.
Since Steam Presence already uses /api/v8/applications/detectable to find game's id, it's possible to reuse that exact id to fetch more info about the game from /api/v8/applications/{id}/rpc, including a hash of the game's icon.
Then it's possible to access the actual icon from https://cdn.discordapp.com/app-icons/{id}/{icon}.webp
A simple implementation of fetching the exact same game icon as would end up being used when playing it natively on Windows, straight from Discord's CDN.
Since Steam Presence already uses
/api/v8/applications/detectable
to find game'sid
, it's possible to reuse that exactid
to fetch more info about the game from/api/v8/applications/{id}/rpc
, including a hash of the game's icon. Then it's possible to access the actual icon fromhttps://cdn.discordapp.com/app-icons/{id}/{icon}.webp
Here's a response for Baldur's Gate 3 and its icon from Discord's CDN.
I've tested this with a few games and works great so far.