Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <user.h>
Data Fields | |
u64snowflake | id |
char * | username |
char * | discriminator |
char * | avatar |
bool | bot |
bool | System |
bool | mfa_enabled |
char * | banner |
int | accent_color |
char * | locale |
bool | verified |
char * | |
u64bitmask | flags |
enum discord_premium_types | premium_type |
u64bitmask | public_flags |
Public methods
discord_user_from_json(const char json[], size_t len, struct discord_user *this)
discord_user_from_jsmnf(jsmnf *root, const char json[], struct discord_user *this)
u64snowflake discord_user::id |
the user's ID
char* discord_user::username |
the user's username, not unique across the platform
char* discord_user::discriminator |
the user's 4-digit discord tag
char* discord_user::avatar |
the user's avatar hash
bool discord_user::bot |
whether the user belong to an OAuth2 application
bool discord_user::System |
whether the user is an Official Discord System user (part of the urgent message system)
bool discord_user::mfa_enabled |
whether the user has two factor enabled on their account
char* discord_user::banner |
the user's banner hash
int discord_user::accent_color |
the user's banner color encoded as an integer representation of hexadecimal color code
char* discord_user::locale |
the user's chosen language option
bool discord_user::verified |
whether the email on this account has been verified
char* discord_user::email |
the user's email
u64bitmask discord_user::flags |
the User flags on a user's account
enum discord_premium_types discord_user::premium_type |
the type of Nitro subscription on a user's account
u64bitmask discord_user::public_flags |
the public User flags on a user's account