27#define DISCORD_USER_NONE 0
29#define DISCORD_USER_STAFF 1 << 0
31#define DISCORD_USER_PARTNER 1 << 1
33#define DISCORD_USER_HYPESQUAD 1 << 2
35#define DISCORD_USER_BUG_HUNTER_LEVEL_1 1 << 3
37#define DISCORD_USER_HYPESQUAD_ONLINE_HOUSE_1 1 << 6
39#define DISCORD_USER_HYPESQUAD_ONLINE_HOUSE_2 1 << 7
41#define DISCORD_USER_HYPESQUAD_ONLINE_HOUSE_3 1 << 8
43#define DISCORD_USER_PREMIUM_EARLY_SUPPORTER 1 << 9
45#define DISCORD_USER_TEAM_PSEUDO_USER 1 << 10
47#define DISCORD_USER_BUG_HUNTER_LEVEL_2 1 << 14
49#define DISCORD_USER_VERIFIED_BOT 1 << 16
51#define DISCORD_USER_VERIFIED_DEVELOPER 1 << 17
53#define DISCORD_USER_CERTIFIED_MODERATOR 1 << 18
55#define DISCORD_USER_BOT_HTTP_INTERACTIONS 1 << 19
size_t discord_modify_current_user_to_json(char buf[], size_t size, const struct discord_modify_current_user *self)
size_t discord_modify_current_user_from_json(const char buf[], size_t size, struct discord_modify_current_user *self)
size_t discord_users_to_json(char buf[], size_t size, const struct discord_users *self)
size_t discord_create_dm_to_json(char buf[], size_t size, const struct discord_create_dm *self)
void discord_modify_current_user_init(struct discord_modify_current_user *self)
size_t discord_create_group_dm_to_json(char buf[], size_t size, const struct discord_create_group_dm *self)
size_t discord_connections_to_json(char buf[], size_t size, const struct discord_connections *self)
discord_visibility_types
Definition: user.h:62
@ DISCORD_VISIBILITY_NONE
Definition: user.h:64
@ DISCORD_VISIBILITY_EVERYONE
Definition: user.h:66
discord_premium_types
Definition: user.h:57
@ DISCORD_PREMIUM_NITRO
Definition: user.h:60
@ DISCORD_PREMIUM_NITRO_CLASSIC
Definition: user.h:59
@ DISCORD_PREMIUM_NONE
Definition: user.h:58
long discord_users_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_users *self)
jsonbcode discord_modify_current_user_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_modify_current_user *self)
size_t discord_create_dm_from_json(const char buf[], size_t size, struct discord_create_dm *self)
void discord_create_group_dm_init(struct discord_create_group_dm *self)
size_t discord_user_from_json(const char buf[], size_t size, struct discord_user *self)
long discord_modify_current_user_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_modify_current_user *self)
size_t discord_user_to_json(char buf[], size_t size, const struct discord_user *self)
jsonbcode discord_user_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_user *self)
void discord_user_cleanup(struct discord_user *self)
void discord_modify_current_user_cleanup(struct discord_modify_current_user *self)
size_t discord_connections_from_json(const char buf[], size_t size, struct discord_connections *self)
void discord_create_dm_cleanup(struct discord_create_dm *self)
jsonbcode discord_connections_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_connections *self)
void discord_create_dm_init(struct discord_create_dm *self)
size_t discord_users_from_json(const char buf[], size_t size, struct discord_users *self)
size_t discord_create_group_dm_from_json(const char buf[], size_t size, struct discord_create_group_dm *self)
void discord_user_init(struct discord_user *self)
long discord_connections_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_connections *self)
jsonbcode discord_users_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_users *self)
jsonbcode discord_create_dm_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_dm *self)
void discord_create_group_dm_cleanup(struct discord_create_group_dm *self)
long discord_create_group_dm_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_group_dm *self)
long discord_create_dm_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_create_dm *self)
void discord_connections_cleanup(struct discord_connections *self)
void discord_users_cleanup(struct discord_users *self)
long discord_user_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_user *self)
jsonbcode discord_create_group_dm_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_create_group_dm *self)
uint64_t u64snowflake
Snowflake datatype.
Definition: types.h:28
uint64_t u64bitmask
Bitmask primitive.
Definition: types.h:35
jsonbcode
json-builder return codes
Definition: json-build.h:34
bool friend_sync
Definition: user.h:123
char * name
Definition: user.h:111
bool verified
Definition: user.h:121
struct discord_integrations * integrations
Definition: user.h:118
char * type
Definition: user.h:113
u64snowflake id
Definition: user.h:109
enum discord_visibility_types visibility
Definition: user.h:128
bool revoked
Definition: user.h:115
bool show_activity
Definition: user.h:126
struct discord_connection * array
Definition: user.h:132
int size
Definition: user.h:131
u64snowflake recipient_id
Definition: user.h:167
struct snowflakes * access_tokens
Definition: user.h:174
struct strings * nicks
Definition: user.h:178
u64snowflake before
Definition: user.h:152
int limit
Definition: user.h:160
u64snowflake after
Definition: user.h:156
char * avatar
Definition: user.h:146
char * username
Definition: user.h:142
u64bitmask flags
Definition: user.h:97
bool System
Definition: user.h:82
int accent_color
Definition: user.h:89
char * avatar
Definition: user.h:77
enum discord_premium_types premium_type
Definition: user.h:99
bool bot
Definition: user.h:79
bool mfa_enabled
Definition: user.h:84
u64snowflake id
Definition: user.h:71
bool verified
Definition: user.h:93
char * username
Definition: user.h:73
u64bitmask public_flags
Definition: user.h:101
char * locale
Definition: user.h:91
char * email
Definition: user.h:95
char * banner
Definition: user.h:86
char * discriminator
Definition: user.h:75
int size
Definition: user.h:104
struct discord_user * array
Definition: user.h:105
Handle for building a JSON string.
Definition: json-build.h:61
int size
Definition: custom.h:20