#include "discord_rpc.h"
static void handleDiscordReady(const DiscordUser* connectedUser)
{
}
static void handleDiscordDisconnected(int errcode, const char* message)
{
}
static void handleDiscordError(int errcode, const char* message)
{
}
static void handleDiscordJoin(const char* secret)
{
}
static void handleDiscordSpectate(const char* secret)
{
}
static void handleDiscordJoinRequest(const DiscordUser* request)
{
}
static const char* ID = "YOUR APP ID";
DiscordRichPresence discordPresence;
DiscordEventHandlers handlers;
memset(&handlers, 0, sizeof(handlers));
handlers.ready = handleDiscordReady;
handlers.disconnected = handleDiscordDisconnected;
handlers.errored = handleDiscordError;
handlers.joinGame = handleDiscordJoin;
handlers.spectateGame = handleDiscordSpectate;
handlers.joinRequest = handleDiscordJoinRequest;
Discord_Initialize(ID, &handlers, 1, NULL);
memset(&discordPresence, 0, sizeof(discordPresence));
discordPresence.state = "State";
discordPresence.details = "DETAILS";
discordPresence.startTimestamp = 1507665886;
discordPresence.endTimestamp = 1507665886;
discordPresence.largeImageKey = "Large ImageKey"
discordPresence.largeImageText = "Large ImageText";
discordPresence.smallImageKey = "Small image key"
discordPresence.smallImageText = "Small image text";
discordPresence.partyId = "party-id";
discordPresence.partySize = 1;
discordPresence.partyMax = 2;
discordPresence.joinSecret = "join-secret";
Discord_UpdatePresence(&discordPresence);