discord-rpc icon indicating copy to clipboard operation
discord-rpc copied to clipboard

[Feature Request] Dynamically set Application name ("Playing ...")

Open VelocityRa opened this issue 1 year ago • 10 comments

Rich Presence does not support dynamically setting a custom App Name (as in "Now Playing ..."). It instead takes the App Name from the Application Name from under https://discordapp.com/developers.

The vast majority of people don't click on profiles to see rich presence details, this would be very useful for music/movies etc app rich presence support. It's the difference between 99% of people seeing ie. "Playing <song title/artist>" instead of "Playing Music" or such.

It's a feature that even MSN messenger supported.


This Issue is a continuation of #54 that got inexplicably closed.

VelocityRa avatar Nov 27 '22 09:11 VelocityRa

image

At the very least, users should be able to change the name ("Last.fm" here) dynamically.

a-github-account avatar Dec 19 '22 17:12 a-github-account

The AliucordRN RichPresence plugin has the ability to do this: image image

@amsyarasyiq any tips on how we can do this?

rollingmoai avatar Jan 03 '23 04:01 rollingmoai

Can you actually edit the application name while running tho? Is it doing it via the RPC or is it using a API call to the developer portal? Also note custom clients, being outside of the TOS, dont always follow the rules when it comes to implementing features

edit: After quick testing I can confirm they must be doing something that normal RPC clients don't have access to (assuming they do allow you to change the name during runtime) as trying to send the activities they do result in RPC errors: error

Lachee avatar Jan 03 '23 05:01 Lachee

Can you actually edit the application name while running tho

It should be possible from what I know of the Discord RPC API. There is a field for name in the Activity Structure.

I would 100% support this being added. I have numerous use cases for this and it seems logical given that most people tend to only glance at quick status, which only displays the activity name. I do this myself and it is annoying that you need a different client ID for every different custom app, since Discord limits the amount of applications you can have.

RyloRiz avatar Jan 28 '23 03:01 RyloRiz

Another reference: Vencord CustomRPC plugin

rollingmoai avatar Feb 03 '23 12:02 rollingmoai

No, it is not possible from a real application. The only reason why modified Discord clients could is because it manually set the application name, bypassing the default behavior (which is fetching the application name from the ID).

amsyarasyiq avatar Feb 03 '23 13:02 amsyarasyiq

Another reference: Vencord CustomRPC plugin

It is possible because you expose your discord token :(

J0nathan550 avatar Sep 27 '23 11:09 J0nathan550

Another reference: Vencord CustomRPC plugin

It's like with Spotify, you can create account there and link discord, when you link discord, you expose your discord token, so that they can detect activity.

J0nathan550 avatar Sep 27 '23 11:09 J0nathan550

Rich Presence doesn't expose your token to anyone.

Lachee avatar Sep 27 '23 13:09 Lachee

Rich Presence doesn't expose your token to anyone.

Then how people is able to change the status to Listening to or Watching when it's not the part of RPC?

J0nathan550 avatar Sep 27 '23 13:09 J0nathan550