Read the about.md for more info
DiscordRPC gives mod developers an API that's a simple bridge to Discord's API.
void gdrpc::GDRPC::initDiscordRP()
This function initializes the RPC. This should not be called by an external mod as this mod already does so for you.
void gdrpc::GDRPC::updateDiscordRP(std::string details, std::string state, std::string smallImageKey, std::string smallImageText, bool useTime, bool shouldResetTime, std::string largeImage)
This massive jumble of spaghetti is what you're going to be using to update the Rich Presence. Every argument after details
is optional.
argument name |
argument description |
---|---|
details |
Text right below the game name (Geometry Dash) |
state |
Additional information below the details |
smallImageKey |
The key (name) for the small image |
smallImageText |
Text that appears when hovering over the small image |
useTime |
Whether to show the time since the last time reset |
shouldResetTime |
Whether to reset the time |
largeImage |
The key (name) for the large image (typically left as gd_large ) |