Orca
A bot framework that is easy to reason about, easy to debug, and easy to use.
Classes | Enumerations | Functions
user.h File Reference

Specs generated file. More...

Go to the source code of this file.

Classes

struct  discord_user
 User Structure. More...
 
struct  discord_connection
 Connection Structure. More...
 

Enumerations

enum  discord_user_flags {
  DISCORD_USER_DISCORD_EMPLOYEE = 1, DISCORD_USER_PARTNERED_SERVER_OWNER = 2, DISCORD_USER_HYPESQUAD_EVENTS = 4, DISCORD_USER_BUG_HUNTER_LEVEL_1 = 8,
  DISCORD_USER_HOUSE_BRAVERY = 32, DISCORD_USER_HOUSE_BRILLIANCE = 64, DISCORD_USER_HOUSE_BALANCE = 128, DISCORD_USER_EARLY_SUPPORTER = 256,
  DISCORD_USER_TEAM_USER = 512, DISCORD_USER_SYSTEM = 4096, DISCORD_USER_BUG_HUNTER_LEVEL_2 = 16384, DISCORD_USER_VERIFIED_BOT = 65536,
  DISCORD_USER_EARLY_VERIFIED_BOT_DEVELOPER = 131072
}
 
enum  discord_user_premium_types { DISCORD_USER_NITRO_CLASSIC = 0, DISCORD_USER_NITRO = 1 }
 
enum  discord_user_connection_visibility_types { DISCORD_USER_CONNECTION_NONE = 0, DISCORD_USER_CONNECTION_EVERYONE = 1 }
 

Functions

char * discord_user_flags_to_string (enum discord_user_flags)
 
enum discord_user_flags discord_user_flags_from_string (char *)
 
bool discord_user_flags_has (enum discord_user_flags, char *)
 
char * discord_user_premium_types_to_string (enum discord_user_premium_types)
 
enum discord_user_premium_types discord_user_premium_types_from_string (char *)
 
bool discord_user_premium_types_has (enum discord_user_premium_types, char *)
 
void discord_user_cleanup_v (void *p)
 
void discord_user_cleanup (struct discord_user *p)
 
void discord_user_init_v (void *p)
 
void discord_user_init (struct discord_user *p)
 
struct discord_userdiscord_user_alloc ()
 
void discord_user_free_v (void *p)
 
void discord_user_free (struct discord_user *p)
 
void discord_user_from_json_v (char *json, size_t len, void *p)
 
void discord_user_from_json (char *json, size_t len, struct discord_user *p)
 
size_t discord_user_to_json_v (char *json, size_t len, void *p)
 
size_t discord_user_to_json (char *json, size_t len, struct discord_user *p)
 
size_t discord_user_to_query_v (char *json, size_t len, void *p)
 
size_t discord_user_to_query (char *json, size_t len, struct discord_user *p)
 
void discord_user_list_free_v (void **p)
 
void discord_user_list_free (struct discord_user **p)
 
void discord_user_list_from_json_v (char *str, size_t len, void *p)
 
void discord_user_list_from_json (char *str, size_t len, struct discord_user ***p)
 
size_t discord_user_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_user_list_to_json (char *str, size_t len, struct discord_user **p)
 
char * discord_user_connection_visibility_types_to_string (enum discord_user_connection_visibility_types)
 
enum discord_user_connection_visibility_types discord_user_connection_visibility_types_from_string (char *)
 
bool discord_user_connection_visibility_types_has (enum discord_user_connection_visibility_types, char *)
 
void discord_connection_cleanup_v (void *p)
 
void discord_connection_cleanup (struct discord_connection *p)
 
void discord_connection_init_v (void *p)
 
void discord_connection_init (struct discord_connection *p)
 
struct discord_connectiondiscord_connection_alloc ()
 
void discord_connection_free_v (void *p)
 
void discord_connection_free (struct discord_connection *p)
 
void discord_connection_from_json_v (char *json, size_t len, void *p)
 
void discord_connection_from_json (char *json, size_t len, struct discord_connection *p)
 
size_t discord_connection_to_json_v (char *json, size_t len, void *p)
 
size_t discord_connection_to_json (char *json, size_t len, struct discord_connection *p)
 
size_t discord_connection_to_query_v (char *json, size_t len, void *p)
 
size_t discord_connection_to_query (char *json, size_t len, struct discord_connection *p)
 
void discord_connection_list_free_v (void **p)
 
void discord_connection_list_free (struct discord_connection **p)
 
void discord_connection_list_from_json_v (char *str, size_t len, void *p)
 
void discord_connection_list_from_json (char *str, size_t len, struct discord_connection ***p)
 
size_t discord_connection_list_to_json_v (char *str, size_t len, void *p)
 
size_t discord_connection_list_to_json (char *str, size_t len, struct discord_connection **p)
 

Detailed Description

Specs generated file.

Author
cee-studio
Date
21 Jun 2021
See also
https://discord.com/developers/docs/resources/user