Skip to content

feat: discord rpc changes/improvements #958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2025

Conversation

iiPythonx
Copy link
Contributor

@iiPythonx iiPythonx commented Jun 15, 2025

This is a prototype/design mockup of migrating the current RPC implementation from a 15 second (default) interval to an event based system. For more examples of any part of this PR, check out my fork's implementation which has a bit more in it, including support for changing application name from Feishin to match the artist name instead.

The checks for song id changes, current time changes, and playing state changes are specifically to prevent sending a bunch of useless updates to the RPC server, which will not only act towards the ratelimit but might also push incorrect data as well.


A feature I wasn't able to get quite figured out is idle mode, which to me is useless in the first place but since it exists in development I figured I would try to get it working; unfortunately, I still haven't managed to do that.

I'm also not too sure about the types I'm using, but considering my IDE isn't yelling at me, I'm going to assume it's good enough?

Copy link

vercel bot commented Jun 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
feishin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2025 0:03am

@jeffvli jeffvli merged commit bea55d4 into jeffvli:development Jun 21, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants