void discord_voice_states_cleanup(struct discord_voice_states *self)
void discord_voice_regions_cleanup(struct discord_voice_regions *self)
size_t discord_voice_regions_to_json(char buf[], size_t size, const struct discord_voice_regions *self)
size_t discord_voice_states_to_json(char buf[], size_t size, const struct discord_voice_states *self)
size_t discord_voice_states_from_json(const char buf[], size_t size, struct discord_voice_states *self)
void discord_voice_state_init(struct discord_voice_state *self)
size_t discord_voice_regions_from_json(const char buf[], size_t size, struct discord_voice_regions *self)
jsonbcode discord_voice_regions_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_voice_regions *self)
long discord_voice_state_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_voice_state *self)
jsonbcode discord_voice_state_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_voice_state *self)
long discord_voice_states_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_voice_states *self)
size_t discord_voice_state_to_json(char buf[], size_t size, const struct discord_voice_state *self)
jsonbcode discord_voice_states_to_jsonb(jsonb *b, char buf[], size_t size, const struct discord_voice_states *self)
void discord_voice_state_cleanup(struct discord_voice_state *self)
long discord_voice_regions_from_jsmnf(jsmnf_pair *root, const char *js, struct discord_voice_regions *self)
size_t discord_voice_state_from_json(const char buf[], size_t size, struct discord_voice_state *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
char * id
Definition: voice.h:60
bool deprecated
Definition: voice.h:66
bool custom
Definition: voice.h:68
char * name
Definition: voice.h:62
bool optimal
Definition: voice.h:64
int size
Definition: voice.h:71
struct discord_voice_region * array
Definition: voice.h:72
u64snowflake channel_id
Definition: voice.h:27
bool self_deaf
Definition: voice.h:39
bool self_video
Definition: voice.h:45
bool mute
Definition: voice.h:37
bool self_mute
Definition: voice.h:41
u64unix_ms request_to_speak_timestamp
Definition: voice.h:51
bool suppress
Definition: voice.h:47
bool deaf
Definition: voice.h:35
u64snowflake user_id
Definition: voice.h:29
bool self_stream
Definition: voice.h:43
char * session_id
Definition: voice.h:33
struct discord_guild_member * member
Definition: voice.h:31
u64snowflake guild_id
Definition: voice.h:25
struct discord_voice_state * array
Definition: voice.h:56
int size
Definition: voice.h:55
Handle for building a JSON string.
Definition: json-build.h:61