Ombrelin / plex-rich-presence

A desktop app to enable discord rich presence for your Plex Media Server Activity
MIT License
187 stars 16 forks source link

Switch Discord Rich Presence #93

Open galaxine-senpai opened 1 year ago

galaxine-senpai commented 1 year ago

I was going to do a pull request with the changes but realized I don't know C#, but my suggestion is to use different statuses such as "listening" when music is playing or when videos are being playing use the "Watching" status, these all should exist, and work (in theory) and it would be a very nice improvement.

Ombrelin commented 1 year ago

Could you point me to some documentation regarding those "listening" and "watching" statuses ?

galaxine-senpai commented 1 year ago

This is the best thing I could find regarding it, I hope this can help https://discordnet.dev/api/Discord.ActivityType.html

Ombrelin commented 1 year ago

That's very helpful, thank you, I'll have a look into it 👍

galaxine-senpai commented 1 year ago

No problem :)

Ombrelin commented 1 year ago

Hi, I looked into it and sadly, the link you provided is for a library called Discord .NET to work with the Discord API to create bots. However, this app works using Rich Presence, which is a mechanism between software on your PC and the discord client, which is an entirely different system, even though the API can also read rich presence from users (hence the Enum you linked). The library I'm using : https://github.com/Lachee/discord-rpc-csharp, doesn't seem to support such a feature.

galaxine-senpai commented 1 year ago

Ah dang

Ombrelin commented 1 year ago

That was my reaction too :'( Keeping the issue in case its supported in the futur

galaxine-senpai commented 1 year ago

Alright, I hope it will!

galaxine-senpai commented 1 year ago

I just decided to check with the library devs and they say it isn't possible.

Ombrelin commented 1 year ago

Hi ! Thank you for taking the time to check with the library author, although the result is as we feared.
However I will keep this issue open it case it changes in the future :+1: