Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <guild_template.h>
Data Fields | |
char * | code |
char * | name |
char * | description |
int | usage_count |
u64snowflake | creator_id |
struct discord_user * | creator |
u64unix_ms | created_at |
u64unix_ms | updated_at |
u64snowflake | source_guild_id |
struct discord_guild * | serialized_source_guild |
bool | is_dirty |
Public methods
discord_guild_template_from_json(const char json[], size_t len, struct discord_guild_template *this)
discord_guild_template_from_jsmnf(jsmnf *root, const char json[], struct discord_guild_template *this)
char* discord_guild_template::code |
the template code (unique ID)
char* discord_guild_template::name |
template name
char* discord_guild_template::description |
the description for the template
int discord_guild_template::usage_count |
number of times this template has been used
u64snowflake discord_guild_template::creator_id |
the ID of the user who created the template
struct discord_user* discord_guild_template::creator |
the user who created the template
u64unix_ms discord_guild_template::created_at |
when this template was created
u64unix_ms discord_guild_template::updated_at |
when this template was last synced to the source guild
u64snowflake discord_guild_template::source_guild_id |
the ID of the guild this template is based on
struct discord_guild* discord_guild_template::serialized_source_guild |
the guild snapshot this template contains
bool discord_guild_template::is_dirty |
whether the template has unsynced changes