12 enum discord_user_flags {
13 DISCORD_USER_DISCORD_EMPLOYEE = 1,
14 DISCORD_USER_PARTNERED_SERVER_OWNER = 2,
15 DISCORD_USER_HYPESQUAD_EVENTS = 4,
16 DISCORD_USER_BUG_HUNTER_LEVEL_1 = 8,
17 DISCORD_USER_HOUSE_BRAVERY = 32,
18 DISCORD_USER_HOUSE_BRILLIANCE = 64,
19 DISCORD_USER_HOUSE_BALANCE = 128,
20 DISCORD_USER_EARLY_SUPPORTER = 256,
21 DISCORD_USER_TEAM_USER = 512,
22 DISCORD_USER_SYSTEM = 4096,
23 DISCORD_USER_BUG_HUNTER_LEVEL_2 = 16384,
24 DISCORD_USER_VERIFIED_BOT = 65536,
25 DISCORD_USER_EARLY_VERIFIED_BOT_DEVELOPER = 131072,
27 extern char* discord_user_flags_to_string(
enum discord_user_flags);
28 extern enum discord_user_flags discord_user_flags_from_string(
char*);
29 extern bool discord_user_flags_has(
enum discord_user_flags,
char*);
32 enum discord_user_premium_types {
33 DISCORD_USER_NITRO_CLASSIC = 0,
34 DISCORD_USER_NITRO = 1,
36 extern char* discord_user_premium_types_to_string(
enum discord_user_premium_types);
37 extern enum discord_user_premium_types discord_user_premium_types_from_string(
char*);
38 extern bool discord_user_premium_types_has(
enum discord_user_premium_types,
char*);
52 char username[MAX_USERNAME_LEN];
56 char discriminator[MAX_DISCRIMINATOR_LEN];
60 char avatar[MAX_SHA256_LEN];
76 char locale[MAX_LOCALE_LEN];
84 char email[MAX_EMAIL_LEN];
88 enum discord_user_flags flags;
92 enum discord_user_premium_types premium_type;
96 enum discord_user_flags public_flags;
104 bool enable_arg_switches;
105 bool enable_record_defined;
106 bool enable_record_null;
107 void *arg_switches[13];
108 void *record_defined[13];
109 void *record_null[13];
113 extern void discord_user_cleanup_v(
void *p);
114 extern void discord_user_cleanup(
struct discord_user *p);
115 extern void discord_user_init_v(
void *p);
118 extern void discord_user_free_v(
void *p);
120 extern void discord_user_from_json_v(
char *json,
size_t len,
void *p);
121 extern void discord_user_from_json(
char *json,
size_t len,
struct discord_user *p);
122 extern size_t discord_user_to_json_v(
char *json,
size_t len,
void *p);
123 extern size_t discord_user_to_json(
char *json,
size_t len,
struct discord_user *p);
124 extern size_t discord_user_to_query_v(
char *json,
size_t len,
void *p);
125 extern size_t discord_user_to_query(
char *json,
size_t len,
struct discord_user *p);
126 extern void discord_user_list_free_v(
void **p);
127 extern void discord_user_list_free(
struct discord_user **p);
128 extern void discord_user_list_from_json_v(
char *str,
size_t len,
void *p);
129 extern void discord_user_list_from_json(
char *str,
size_t len,
struct discord_user ***p);
130 extern size_t discord_user_list_to_json_v(
char *str,
size_t len,
void *p);
131 extern size_t discord_user_list_to_json(
char *str,
size_t len,
struct discord_user **p);
134 enum discord_user_connection_visibility_types {
135 DISCORD_USER_CONNECTION_NONE = 0,
136 DISCORD_USER_CONNECTION_EVERYONE = 1,
138 extern char* discord_user_connection_visibility_types_to_string(
enum discord_user_connection_visibility_types);
139 extern enum discord_user_connection_visibility_types discord_user_connection_visibility_types_from_string(
char*);
140 extern bool discord_user_connection_visibility_types_has(
enum discord_user_connection_visibility_types,
char*);
183 enum discord_user_connection_visibility_types visibility;
191 bool enable_arg_switches;
192 bool enable_record_defined;
193 bool enable_record_null;
194 void *arg_switches[9];
195 void *record_defined[9];
196 void *record_null[9];
200 extern void discord_connection_cleanup_v(
void *p);
202 extern void discord_connection_init_v(
void *p);
205 extern void discord_connection_free_v(
void *p);
207 extern void discord_connection_from_json_v(
char *json,
size_t len,
void *p);
208 extern void discord_connection_from_json(
char *json,
size_t len,
struct discord_connection *p);
209 extern size_t discord_connection_to_json_v(
char *json,
size_t len,
void *p);
210 extern size_t discord_connection_to_json(
char *json,
size_t len,
struct discord_connection *p);
211 extern size_t discord_connection_to_query_v(
char *json,
size_t len,
void *p);
212 extern size_t discord_connection_to_query(
char *json,
size_t len,
struct discord_connection *p);
213 extern void discord_connection_list_free_v(
void **p);
215 extern void discord_connection_list_from_json_v(
char *str,
size_t len,
void *p);
216 extern void discord_connection_list_from_json(
char *str,
size_t len,
struct discord_connection ***p);
217 extern size_t discord_connection_list_to_json_v(
char *str,
size_t len,
void *p);
218 extern size_t discord_connection_list_to_json(
char *str,
size_t len,
struct discord_connection **p);