Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <gateway.h>
Data Fields | |
u64snowflake | guild_id |
struct snowflakes * | channel_ids |
struct discord_channels * | threads |
struct discord_thread_members * | members |
Public methods
discord_thread_list_sync_from_json(const char json[], size_t len, struct discord_thread_list_sync *this)
discord_thread_list_sync_from_jsmnf(jsmnf *root, const char json[], struct discord_thread_list_sync *this)
discord_thread_list_sync_to_json(char buf[], size_t size, const struct discord_thread_list_sync *this)
discord_thread_list_sync_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_thread_list_sync *this)
u64snowflake discord_thread_list_sync::guild_id |
the id of the guild
struct snowflakes* discord_thread_list_sync::channel_ids |
the parent channel ids whose threads are being synced. if omitted, then threads were synced for the entire guild. This array may contain channel_ids that have no active threads as well, so you know to clear data
struct discord_channels* discord_thread_list_sync::threads |
all active threads in the given channels that the current user can access
struct discord_thread_members* discord_thread_list_sync::members |
all thread member objects from the synced threads for the current user, indicating which threads the current user has been added to