Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <gateway.h>
Data Fields | |
char * | name |
enum discord_activity_types | type |
char * | url |
u64unix_ms | created_at |
struct discord_activity_timestamps * | timestamps |
u64snowflake | application_id |
char * | details |
char * | state |
struct discord_activity_emoji * | emoji |
struct discord_activity_party * | party |
struct discord_activity_assets * | assets |
struct discord_activity_secrets * | secrets |
bool | instance |
u64bitmask | flags |
struct discord_activity_buttons * | buttons |
char* discord_activity::name |
the activity's name
enum discord_activity_types discord_activity::type |
activity type
char* discord_activity::url |
stream url, is validated when type is 1
u64unix_ms discord_activity::created_at |
unix timestamp (in milliseconds) of when the activity was added to the user's session
struct discord_activity_timestamps* discord_activity::timestamps |
unix timestamps for start and/or end of the game
u64snowflake discord_activity::application_id |
application ID for the game
char* discord_activity::details |
what the player is currently doing
char* discord_activity::state |
the user's current party status
struct discord_activity_emoji* discord_activity::emoji |
the emoji used for a custom status
struct discord_activity_party* discord_activity::party |
information for the current party of the player
struct discord_activity_assets* discord_activity::assets |
images for the presence and their hover texts
struct discord_activity_secrets* discord_activity::secrets |
secrets for Rich Presence joining and spectating
bool discord_activity::instance |
whether or not the activity is an instanced game session
u64bitmask discord_activity::flags |
activity flags bitwise mask, describes what they payload includes
struct discord_activity_buttons* discord_activity::buttons |
the custom buttons shown in the Rich Presence (max 2)