Well, yesterday Discord messenger launched its brand new Rich Presence API which allows users to send more detailed data about what they're playing (instead of the very simple MSN-like "Playing [game name]" used before) plus some naughty things like embedded/connected netplay, spectate and other data transmissions.

The game would be detected in a way like how retroachivements detect what game is running and set up its proper achivements.
The full features possible with rich presence API are described here and here (thanks @RobLoach for the link).
EDIT: Here is a more detailed documentation, for developers. And a guide for users/players is here.
It would be awesome if retroarch could have support of this! Thanks in advance
I agree, this could be something that is very nice to have. If you were to add it, 1 could be the icon of RetroArch. 2 could be the icon of the emulator you are using (or you could swap 1 and 2). 3 could display the name of the ROM you are using. And 5, 6, 7, 8 and 9 could display Netplay stats. I don't know how this could be worked into RetroArch and it's just and idea for something that could be cool.
Rich Presence also allows you to host, join and spectate matches for games that have the integration. If someone were to implement this into Retroarch, it would be pretty revolutionary.
The Rich Presence Discord API looks great. There's an example of using it in C asyncronously:
https://github.com/discordapp/discord-rpc/blob/master/examples/send-presence/send-presence.c
Has this been worked on?
Good question! Discord itself added support for some games (and non-games software like Spotify); and the ones still without (like Minecraft) already have some mod to add RP too.
@fr500 Think we could have it as HAVE_DISCORD, and bring in the dependencies during the build process? We should avoid having it on Buildbot, at least until its proven. Could even run it on a fork WIP.
It looks like Dolphin has an active pull request for this feature: https://github.com/dolphin-emu/dolphin/pull/6983
Dolphin recently had Rich Presence support officially merged.
https://dolphin-emu.org/download/dev/2cfdf89898c4689884fbffb1c693ec24a7083f66/?nocr=true
Is this still being worked on or nah?
We need somebody pushing it forward.
Was that the final piece needed, or is there a bit more needed?
Closing this since it has been merged already
Most helpful comment
Rich Presence also allows you to host, join and spectate matches for games that have the integration. If someone were to implement this into Retroarch, it would be pretty revolutionary.