Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <gateway.h>
Data Fields | |
struct discord_user * | user |
u64snowflake | guild_id |
char * | status |
struct discord_client_status * | client_status |
struct discord_activities * | activities |
u64unix_ms | since |
bool | afk |
Public methods
discord_presence_update_from_json(const char json[], size_t len, struct discord_presence_update *this)
discord_presence_update_from_jsmnf(jsmnf *root, const char json[], struct discord_presence_update *this)
struct discord_user* discord_presence_update::user |
the user presence is being updated for
u64snowflake discord_presence_update::guild_id |
id of the guild
char* discord_presence_update::status |
either "idle", "dnd", "online", or "offline"
struct discord_client_status* discord_presence_update::client_status |
user's platform-dependent status
struct discord_activities* discord_presence_update::activities |
user's current activities
u64unix_ms discord_presence_update::since |
unix time (in milliseconds) of when the client went idle, or null if the client is not idle
bool discord_presence_update::afk |
whether or not the client is afk