dscrd
Discord C library
Data Fields
DiscordActivity_s Struct Reference

Activity object (game) More...

#include <dscrd.h>

Data Fields

char application_id [21]
 application id for the game More...
 
uint8_t _type
 reserved More...
 
char * name
 
int type
 activity type More...
 
char * url
 stream url, required if type is ACTIVITY_STREAMING, only twitch.tv supported More...
 
int timestamp_start
 
int timestamp_stop
 
char * details
 what the player is currently doing More...
 
char * state
 the user's current party status More...
 
bool instance
 whether or not the activity is an instanced game session More...
 
int flags
 activity flags ORd together, describes what the payload includes More...
 

Detailed Description

Activity object (game)

Note
Bots are only able to send name, type, and optionally url.
See also
DiscordActivity_s for detailed element documentation

Field Documentation

◆ _type

uint8_t _type

reserved

◆ application_id

char application_id[21]

application id for the game

◆ details

char* details

what the player is currently doing

◆ flags

int flags

activity flags ORd together, describes what the payload includes

◆ instance

bool instance

whether or not the activity is an instanced game session

◆ name

char* name

guild id of webhook the activity's name

◆ state

char* state

the user's current party status

◆ timestamp_start

int timestamp_start

TODO timestamp_x -> timestamps unix timestamps for start and/or end of the game

◆ timestamp_stop

int timestamp_stop

◆ type

int type

activity type

◆ url

char* url

stream url, required if type is ACTIVITY_STREAMING, only twitch.tv supported


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