Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <gateway.h>
Data Fields | |
u64snowflake | channel_id |
char * | code |
u64unix_ms | created_at |
u64snowflake | guild_id |
struct discord_user * | inviter |
int | max_age |
int | max_uses |
enum discord_invite_target_types | target_type |
struct discord_user * | target_user |
struct discord_application * | target_application |
bool | temporary |
int | uses |
Public methods
discord_invite_create_from_json(const char json[], size_t len, struct discord_invite_create *this)
discord_invite_create_from_jsmnf(jsmnf *root, const char json[], struct discord_invite_create *this)
discord_invite_create_to_json(char buf[], size_t size, const struct discord_invite_create *this)
discord_invite_create_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_invite_create *this)
u64snowflake discord_invite_create::channel_id |
the channel the invite is for
char* discord_invite_create::code |
the unique invite code
u64unix_ms discord_invite_create::created_at |
the time at which the invite was created
u64snowflake discord_invite_create::guild_id |
the guild of the invite
struct discord_user* discord_invite_create::inviter |
the user that created the invite
int discord_invite_create::max_age |
how long the inviteis valid for (in seconds)
int discord_invite_create::max_uses |
the maximum number of times the invite can be used
enum discord_invite_target_types discord_invite_create::target_type |
the discord_invite_target_types for this voice channel invite
struct discord_user* discord_invite_create::target_user |
the user whose stream to display for this voice channel stream invite
struct discord_application* discord_invite_create::target_application |
the embedded application to open for this voice channel embedded application invite
bool discord_invite_create::temporary |
whether or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role)
int discord_invite_create::uses |
how many times the invite has been used (always 0)