Closed maxoliinyk closed 9 months ago
AFAIK https://github.com/NextFire/apple-music-discord-rpc/issues/28#issuecomment-1185226351 and https://discord.com/developers/docs/game-sdk/activities#data-models-activitytype-enum
ActivityType is strictly for the purpose of handling events that you receive from Discord; though the SDK/our API will not reject a payload with an ActivityType sent, it will be discarded and will not change anything in the client.
Either this person is not using the RPC protocol, or is using an unofficial endpoint, or is a selfbot. The second and last ones do not comply with Discord's ToS.
I tried to set type: 2
and it still doesn't work
Well, that's unfortunate
Btw, that person uses Cider, and it's closed-source sadly, so no way to know how it works that way
It's perhaps possible to review the behavior in RicherCider-Vencord ? Um, I think it's a client-side patch though LOL... Just, like, guessing by these bits mostly.
That probably means whoever took the screenshot (maybe you/OP?) is using that plugin, or similar. Here it's hard-coded to a set of app IDs. I don't know how this repo sets up its rich presence but you could probably do a similar client-side patch by, uh, just checking if the message is something like "Apple Music". And of course, it would only affect your client (and other people using the same plugin).
Also see discordjs/RPC#149 (comment)
activity types were just supported recently, see this comment from the same issue thread and advaith's tweet
edit: i tried editing the script directly to use npm:@xhayper/discord-rpc
with some minor adjustments, listening status works but seems like end timestamp is not yet supported
for anyone who wants to use this early, here you go :)
just edit the file directly and run brew services restart apple-music-discord-rpc
music-rpc.ts
There are some Apple Music RPCs that show "Listening to Apple Music", and it makes more sense than "Playing Apple Music"