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

Added more documentation #148

Merged
merged 4 commits into from Mar 19, 2018
Merged

Added more documentation #148

merged 4 commits into from Mar 19, 2018

Conversation

Lachee
Copy link
Contributor

@Lachee Lachee commented Mar 18, 2018

Improved the documentation some more. I removed the secret field in the JoinRequest (since it does not send any) and added some additional notes. Also included the structures for the responses.

There is no secret passed to a Join Request
Added some helpful tips. Plan to add more as I go along.
@msciotti
Copy link
Collaborator

Thank you for these copious notes! Originally, the "hard mode" documentation was just intended for developers that already had RPC access, so it just had some basic info about RPC commands. While most devs will grab the SDK and be on their way, there's obviously a desire for native implementations like yours. This is very much appreciated for others going down the same path.

@msciotti msciotti merged commit 8e0c784 into discord:master Mar 19, 2018
@sultan32
Copy link

static void UpdatePresence()
{
DiscordRichPresence discordPresence;
memset(&discordPresence, 0, sizeof(discordPresence));
discordPresence.state = "Playing Solo";
discordPresence.details = "Competitive";
discordPresence.startTimestamp = 1507665886;
discordPresence.endTimestamp = 1507665886;
discordPresence.largeImageText = "Numbani";
discordPresence.smallImageText = "Rogue - Level 100";
discordPresence.partyId = "ae488379-351d-4a4f-ad32-2b9b01c91657";
discordPresence.partySize = 1;
discordPresence.partyMax = 5;
discordPresence.joinSecret = "MTI4NzM0OjFpMmhuZToxMjMxMjM= ";
Discord_UpdatePresence(&discordPresence);
}

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.

None yet

3 participants