Modify Current User#
-
ORCAcode discord_modify_current_user(struct discord *client, struct discord_modify_current_user_params *params, struct discord_user *ret)#
Modify client’s user account settings.
- Parameters:
client – the client created with discord_init()
params – request parameters
ret – if successful, a discord_user that should be free’d with
discord_user_cleanup()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
-
struct discord_modify_current_user_params#
Methods
Initializer:
void discord_modify_current_user_params_init(struct discord_modify_current_user_params *)
Cleanup:
void discord_modify_current_user_params_cleanup(struct discord_modify_current_user_params *)
void discord_modify_current_user_params_list_free(struct discord_modify_current_user_params **)
JSON Decoder:
void discord_modify_current_user_params_from_json(char *rbuf, size_t len, struct discord_modify_current_user_params *)
void discord_modify_current_user_params_list_from_json(char *rbuf, size_t len, struct discord_modify_current_user_params ***)
JSON Encoder:
void discord_modify_current_user_params_to_json(char *wbuf, size_t len, struct discord_modify_current_user_params *)
void discord_modify_current_user_params_list_to_json(char *wbuf, size_t len, struct discord_modify_current_user_params **)