I have recently installed discord from snap. Everything is being detected and working fine except discord presence just doesn’t work.
Rich Presence doesn’t updates while I am running vscode, or any game.
There is a option to add activity but it’s not a rich presence.
Snap and FlatPak packages run inside a container and are pretty much isolated from all other processes. As a result, there is virtually no interprocess communication going on between the Snap/FlatPak package and other applications.
The only two workarounds are to either…
use the regular Discord package from the repository; or…
have somebody build you a Snap/FlatPak version of Discord that comes bundled together with the applications that you want Discord to communicate with.
Given that Discord is proprietary software and that it is used in a wide variety of contexts, your chances at the second option are as good as nil. Therefore, uninstalling the Snap version of Discord and installing the version from the Community repository is your best (and only) option.