Concord - C Discord API library
A Discord API wrapper library written in C
discord_activity Struct Reference

#include <gateway.h>

Collaboration diagram for discord_activity:
[legend]

Data Fields

char * name
 
enum discord_activity_types type
 
char * url
 
u64unix_ms created_at
 
struct discord_activity_timestampstimestamps
 
u64snowflake application_id
 
char * details
 
char * state
 
struct discord_activity_emojiemoji
 
struct discord_activity_partyparty
 
struct discord_activity_assetsassets
 
struct discord_activity_secretssecrets
 
bool instance
 
u64bitmask flags
 
struct discord_activity_buttonsbuttons
 

Field Documentation

◆ name

char* discord_activity::name

the activity's name

◆ type

enum discord_activity_types discord_activity::type

activity type

◆ url

char* discord_activity::url

stream url, is validated when type is 1

◆ created_at

u64unix_ms discord_activity::created_at

unix timestamp (in milliseconds) of when the activity was added to the user's session

◆ timestamps

struct discord_activity_timestamps* discord_activity::timestamps

unix timestamps for start and/or end of the game

◆ application_id

u64snowflake discord_activity::application_id

application ID for the game

◆ details

char* discord_activity::details

what the player is currently doing

◆ state

char* discord_activity::state

the user's current party status

◆ emoji

struct discord_activity_emoji* discord_activity::emoji

the emoji used for a custom status

◆ party

struct discord_activity_party* discord_activity::party

information for the current party of the player

◆ assets

struct discord_activity_assets* discord_activity::assets

images for the presence and their hover texts

◆ secrets

struct discord_activity_secrets* discord_activity::secrets

secrets for Rich Presence joining and spectating

◆ instance

bool discord_activity::instance

whether or not the activity is an instanced game session

◆ flags

u64bitmask discord_activity::flags

activity flags bitwise mask, describes what they payload includes

See also
Gateway activity flags

◆ buttons

struct discord_activity_buttons* discord_activity::buttons

the custom buttons shown in the Rich Presence (max 2)


The documentation for this struct was generated from the following file: