When I am on Discord and I hover over my friends’ profiles, I see that sometimes there is a little blurb which shows something like “Listening to spotify…” and then it specifies what song they are listening to etc… and how far they are into that song and so on. Sometimes Discord can even show when a person is in VSCode and how long they have been working in VSCode.
How does Discord do this? I’m seeking an explanation of what’s going on behind the scenes at a conceptual level.