implemet buttons

This commit is contained in:
Panda Soli
2023-09-27 15:31:33 -03:00
parent 963aa9f3e5
commit 6a7e48e9c3
4 changed files with 34 additions and 9 deletions

View File

@@ -23,6 +23,12 @@
extern "C" {
#endif
typedef struct DiscordPresenceButton {
const char* label;
const char* url;
const struct DiscordPresenceButton* next;
} DiscordPresenceButton;
typedef struct DiscordRichPresence {
const char* state; /* max 128 bytes */
const char* details; /* max 128 bytes */
@@ -40,6 +46,7 @@ typedef struct DiscordRichPresence {
const char* joinSecret; /* max 128 bytes */
const char* spectateSecret; /* max 128 bytes */
int8_t instance;
const DiscordPresenceButton* buttons;
} DiscordRichPresence;
typedef struct DiscordUser {