From c3c27c730df585eef40ad80a2e9f717c2d98e9ff Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Fri, 28 Jul 2017 16:06:46 -0700 Subject: [PATCH] note max sizes --- include/discord-rpc.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/discord-rpc.h b/include/discord-rpc.h index 1f7a651..519835a 100644 --- a/include/discord-rpc.h +++ b/include/discord-rpc.h @@ -6,20 +6,20 @@ extern "C" { #endif typedef struct DiscordRichPresence { - const char* state; - const char* details; + const char* state; /* max 128 bytes */ + const char* details; /* max 128 bytes */ int64_t startTimestamp; int64_t endTimestamp; - const char* largeImageKey; - const char* largeImageText; - const char* smallImageKey; - const char* smallImageText; - const char* partyId; + const char* largeImageKey; /* max 32 bytes */ + const char* largeImageText; /* max 128 bytes */ + const char* smallImageKey; /* max 32 bytes */ + const char* smallImageText; /* max 128 bytes */ + const char* partyId; /* max 128 bytes */ int partySize; int partyMax; - const char* matchSecret; - const char* joinSecret; - const char* spectateSecret; + const char* matchSecret; /* max 128 bytes */ + const char* joinSecret; /* max 128 bytes */ + const char* spectateSecret; /* max 128 bytes */ int8_t instance; } DiscordRichPresence;