Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <guild.h>
Data Fields | |
u64snowflake | id |
char * | name |
char * | type |
bool | enabled |
bool | syncing |
u64snowflake | role_id |
bool | enable_emoticons |
enum discord_integration_expire_behaviors | expire_behavior |
int | expire_grace_period |
struct discord_user * | user |
struct discord_integration_account * | account |
u64unix_ms | synced_at |
int | subscriber_count |
bool | revoked |
struct discord_integration_application * | application |
u64snowflake | guild_id |
Public methods
discord_integration_from_json(const char json[], size_t len, struct discord_integration *this)
discord_integration_from_jsmnf(jsmnf *root, const char json[], struct discord_integration *this)
u64snowflake discord_integration::id |
integration id
char* discord_integration::name |
integration name
char* discord_integration::type |
integration type (twitch, youtube, or discord)
bool discord_integration::enabled |
is this integration enabled
bool discord_integration::syncing |
is this integration syncing
u64snowflake discord_integration::role_id |
ID that this integration uses for "subscribers"
bool discord_integration::enable_emoticons |
whether emoticons should be synced for this integration (twitch only currently)
enum discord_integration_expire_behaviors discord_integration::expire_behavior |
the behavior of expiring subscribers
int discord_integration::expire_grace_period |
the grace period (in days) before expiring subscribers
struct discord_user* discord_integration::user |
user for this integration
struct discord_integration_account* discord_integration::account |
integration account information
u64unix_ms discord_integration::synced_at |
when this integration was last synced
int discord_integration::subscriber_count |
how many subscribers this integration has
bool discord_integration::revoked |
has this integration been revoked
struct discord_integration_application* discord_integration::application |
the bot/OAuth2 application for discord integrations
u64snowflake discord_integration::guild_id |
id of the guild
Integration Create
or Integration Update