Skip to content
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

Add custom Rich Presence names #258

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

JustArion
Copy link

@JustArion JustArion commented Oct 15, 2024

Discord normally discards the Name property and replaces it with the name associated with the Discord Application. Projects such as arRPC from OpenAsar are more lenient on such restrictions. Clients using OpenAsar will have their Discord Rich Presence shown like the screenshot below if the commit is merged.

Normal Discord clients are unaffected by this change and modifying the property will do nothing for them (for now).

If the user has a normal Discord client:
92359b9c-7610-484e-a03b-ef2e6f5087d2_15-10-2024

Confirmed working with arRPC via the BasicExample

            client.SetPresence(new RichPresence()
            {
                Name = "A test Example",
                Details = "A Basic Example",
                State = "In Game",
                Timestamps = Timestamps.FromTimeSpan(10),
                Buttons = new Button[]
                {
                    new Button() { Label = "Fish", Url = "https://lachee.dev/" }
                }
            });

Client running openAsar:
d0b3b97e-45be-4bcd-b37a-fd8deb80ce6d_15-10-2024

The PR is similar to #255 though currently only targets openAsar users. Discord will probably allow this in the default client in the future.

Fixes #48

@JustArion JustArion changed the title Allow custom Rich Presence names Add custom Rich Presence names Oct 15, 2024
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.

Change primary name
1 participant