Repository navigation
Discord: default to EDNexus's real application id and replace the saved placeholder - #210
Merged
Merged
Conversation
…ed placeholder Earlier builds shipped an all-zeros placeholder that Discord rejects, so Rich Presence never worked, and saved it into every settings.json. The default is now 1557985945393827911, and a blank or placeholder id is treated as unset (a real override is still honoured). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (3)
📒 Files selected for processing (6)
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 |
…ge image The art assets the presence refers to were never created. The large image was also a per-ship key that only renders if an asset with exactly that key was uploaded, and the journal's ship names are not stable enough to pre-generate. The large image is now always ednexus_logo (the ship is named in the hover text), and the logo, docked and cruising images are generated at 1024x1024 in assets/discord with upload instructions. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
|
Update: the art assets the presence refers to were never created, so I added them and fixed the underlying problem.
Full test suite green; not run against a live Discord client. 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discord Rich Presence never worked in released builds: the default Discord application id was the all-zeros placeholder, which Discord rejects, and the connection error was swallowed silently.
Change
DiscordPresenceService.DefaultApplicationIdis now EDNexus's real Discord application,1557985945393827911.settings.json, so changing the default alone would not have fixed existing installs.ResolveApplicationIdtreats a blank value or the old0000000000000000000as "not set" and uses the default; a real override typed by the commander is still honoured.EngineHostuses it when it creates the RPC client.Notes
ednexus_logo,docked,cruising(and the ship keys the mapper produces) are uploaded to that Discord application.Discord.Enabledstill defaults to on (an unmerged branch makes it opt-in); now that presence will actually broadcast, worth deciding.Verified
dotnet build0 warnings; fulldotnet testgreen (+8 tests). Not verified against a live Discord client (the app was not run here); to check after merge: with Discord desktop open and "Share your detected activities" on, start EDNexus and the game and look for the "Playing EDNexus" status.🤖 Generated with Claude Code