|
Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <gateway.h>
Data Fields | |
| char * | token |
| struct discord_identify_connection * | properties |
| bool | compress |
| int | large_threshold |
| struct integers * | shard |
| struct discord_presence_update * | presence |
| u64bitmask | intents |
Public methods
discord_identify_from_json(const char json[], size_t len, struct discord_identify *this)discord_identify_from_jsmnf(jsmnf *root, const char json[], struct discord_identify *this)| char* discord_identify::token |
authentication token
| struct discord_identify_connection* discord_identify::properties |
connection properties
| bool discord_identify::compress |
whether this connection supports compression packets
| int discord_identify::large_threshold |
value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list
| struct integers* discord_identify::shard |
array of two integers (shard_id, num_shards)
| struct discord_presence_update* discord_identify::presence |
presence structure for initial presence information
| u64bitmask discord_identify::intents |
the gateway intents you wish to receive