feat: use Listening activity type for Discord presence#76
Conversation
Discord removed the whitelist restriction on the "Listening" RPC activity type, so set type 2 on the presence to render "Listening to ..." instead of "Playing". go-discordrpc exposes no enum for this, so define a local activityTypeListening constant.
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds an explicit ChangesDiscord Listening Activity Type
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the Discord Rich Presence payload so scrobbles appear as “Listening to …” instead of “Playing” by setting the activity Type to 2 (Listening), using a local constant because go-discordrpc doesn’t expose an enum.
Changes:
- Add a local
activityTypeListening = 2constant with explanatory comments. - Set
Typeon theclient.Activityreturned bycreateActivityso Discord renders the “Listening to …” presence label.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Set RPC activity type 2 so presence renders "Listening to …" instead of "Playing" — Discord lifted the whitelist restriction on this type.
go-discordrpcexposes no enum, so a localactivityTypeListeningconstant is defined.Summary by CodeRabbit