fix(X.com): remove broken dynamic clientID logic - #10979
Conversation
🖼️ Activity asset previewAsset inspection complete. No pixels were harmed in the making of this comment. 🤖 X.com (
|
| Preview | Source | URL |
|---|---|---|
![]() |
logo | https://cdn.rcd.gg/PreMiD/websites/X/X.com/assets/logo.png |
| thumbnail | https://cdn.rcd.gg/PreMiD/websites/X/X.com/assets/thumbnail.png | |
![]() |
code (presence.ts) |
https://cdn.rcd.gg/PreMiD/websites/X/X.com/assets/1.png |
![]() |
code (presence.ts) |
https://cdn.rcd.gg/PreMiD/websites/X/X.com/assets/0.png |
Beep boop — I refresh this comment on every push, so no need to scroll. 🤖
…vements - Update the Twitter application ID to fix Activity not appearing when "Enable Twitter" is enabled - Add "name" field to PresenceData to correctly update the activity name when "Enable Twitter" is enabled - Simplify asset image logic for better readability - Remove the deprecated and unnecessary presence.setActivity() call - Update the setting label from "Enable twitter" to "Enable Twitter" - Bump the version from 1.2.0 to 1.2.1 close PreMiD#10847
skullysmods
left a comment
There was a problem hiding this comment.
The Activity appears to freeze when the “Enable Twitter” setting is enabled. There must be another issue besides the clientID.
|
Hi there! (Please note that I used a translator for this because I’m not confident in my written English) This issue occurred because, when the Enable Twitter option was enabled, a new instance of After reviewing the code, I realized that it wasn’t necessary to maintain multiple instances of Therefore, I removed the logic for switching instances and simplified the implementation to use a single instance of I uploaded a video to YouTube where you can see the Activity working as intended: https://www.youtube.com/watch?v=B2lKITmaKEw Thanks for reviewing this! :) |
I think that's actually the best thing to do to ensure the Activity works properly! Changing the clientID isn't really necessary anymore since we can change the Activity's name dynamically. |



…vements
close #10847
Description
This PR fixes the issue reported in #10847, where no activity was displayed when the Enable Twitter setting was enabled.
The issue was caused by an outdated Twitter Application ID, which prevented Discord from displaying the activity correctly. This update replaces the old Application ID with a valid one, restoring Twitter Rich Presence functionality.
Additionally, this PR introduces a dynamic
namefield inPresenceDatato ensure the activity name matches the selected platform. When Enable Twitter is enabled, the activity is displayed as Twitter; otherwise, it is displayed as X.com.Other changes include:
presence.setActivity()call.Acknowledgements
npm run lintScreenshots
Proof showing the creation/modification is working as expected