Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <gateway.h>
Data Fields | |
u64snowflake | guild_id |
struct discord_guild_members * | members |
int | chunk_index |
int | chunk_count |
struct snowflakes * | not_found |
struct discord_presence_updates * | presences |
char * | nonce |
Public methods
discord_guild_members_chunk_from_json(const char json[], size_t len, struct discord_guild_members_chunk *this)
discord_guild_members_chunk_from_jsmnf(jsmnf *root, const char json[], struct discord_guild_members_chunk *this)
discord_guild_members_chunk_to_json(char buf[], size_t size, const struct discord_guild_members_chunk *this)
discord_guild_members_chunk_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_guild_members_chunk *this)
u64snowflake discord_guild_members_chunk::guild_id |
the id of the guild
struct discord_guild_members* discord_guild_members_chunk::members |
set of guild members
int discord_guild_members_chunk::chunk_index |
the chunk index in the expected chunks for this response
0 <= chunk_index < chunk_count
int discord_guild_members_chunk::chunk_count |
the total number of expected chunks for this response
struct snowflakes* discord_guild_members_chunk::not_found |
if passing an invalid id to REQUEST_GUILD_MEMBERS
, it will be returned here
struct discord_presence_updates* discord_guild_members_chunk::presences |
if passing true to REQUEST_GUILD_MEMBERS
, presences of the returned members will be here
char* discord_guild_members_chunk::nonce |
the nonce used in the Guild Members Request