long discord_invite_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_invite *self)
size_t discord_get_invite_from_json(const char buf[], size_t size, struct discord_get_invite *self)
size_t discord_invite_from_json(const char buf[], size_t size, struct discord_invite *self)
jsonbcode discord_invite_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_invite *self)
void discord_invites_cleanup(struct discord_invites *self)
long discord_get_invite_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_get_invite *self)
size_t discord_invites_from_json(const char buf[], size_t size, struct discord_invites *self)
void discord_get_invite_cleanup(struct discord_get_invite *self)
long discord_invites_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_invites *self)
void discord_invite_init(struct discord_invite *self)
size_t discord_invites_to_json(char buf[], size_t size, const struct discord_invites *self)
void discord_invite_cleanup(struct discord_invite *self)
jsonbcode discord_get_invite_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_get_invite *self)
size_t discord_get_invite_to_json(char buf[], size_t size, const struct discord_get_invite *self)
size_t discord_invite_to_json(char buf[], size_t size, const struct discord_invite *self)
jsonbcode discord_invites_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_invites *self)
discord_invite_target_types
Definition: invite.h:22
@ DISCORD_INVITE_TARGET_EMBEDDED_APPLICATION
Definition: invite.h:24
@ DISCORD_INVITE_TARGET_STREAM
Definition: invite.h:23
void discord_get_invite_init(struct discord_get_invite *self)
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
uint64_t u64unix_ms
Unix time in milliseconds.
Definition: types.h:22
jsonbcode
json-builder return codes
Definition: json-build.h:34
Definition: application.h:35
Definition: channel.h:122
char * reason
Definition: invite.h:119
u64snowflake guild_scheduled_event_id
Definition: invite.h:114
bool with_expiration
Definition: invite.h:111
bool with_counts
Definition: invite.h:109
Definition: guild_scheduled_event.h:38
struct discord_guild_members * members
Definition: invite.h:94
char * topic
Definition: invite.h:101
int participant_count
Definition: invite.h:97
int speaker_count
Definition: invite.h:99
struct discord_user * inviter
Definition: invite.h:38
enum discord_invite_target_types target_type
Definition: invite.h:42
int approximate_member_count
Definition: invite.h:56
int approximate_presence_count
Definition: invite.h:54
struct discord_guild_scheduled_event * guild_scheduled_event
Definition: invite.h:70
u64unix_ms expires_at
Definition: invite.h:60
struct discord_application * target_application
Definition: invite.h:51
char * code
Definition: invite.h:29
struct discord_guild * guild
Definition: invite.h:32
struct discord_invite_stage_instance * stage_instance
Definition: invite.h:65
struct discord_channel * channel
Definition: invite.h:35
struct discord_user * target_user
Definition: invite.h:46
struct discord_invite * array
Definition: invite.h:75
int size
Definition: invite.h:74
Handle for building a JSON string.
Definition: json-build.h:61