Modify Current Member#

ORCAcode discord_modify_current_member(struct discord *client, u64_snowflake_t guild_id, struct discord_modify_current_member_params *params, struct discord_guild_member *ret)#

Modifies the current member in the guild.

Note

Fires a Guild Member Update event

Parameters:
  • client – the client created with discord_init()

  • guild_id – the unique id of the guild where the member exists

  • params – request parameters

  • ret – if successful, a discord_guild_member that should be free’d with discord_guild_member_cleanup()

Returns:

ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary

struct discord_modify_current_member_params#

Methods

  • Initializer:

    • void discord_modify_current_member_params_init(struct discord_modify_current_member_params *)

  • Cleanup:

    • void discord_modify_current_member_params_cleanup(struct discord_modify_current_member_params *)

    • void discord_modify_current_member_params_list_free(struct discord_modify_current_member_params **)

  • JSON Decoder:

    • void discord_modify_current_member_params_from_json(char *rbuf, size_t len, struct discord_modify_current_member_params *)

    • void discord_modify_current_member_params_list_from_json(char *rbuf, size_t len, struct discord_modify_current_member_params ***)

  • JSON Encoder:

    • void discord_modify_current_member_params_to_json(char *wbuf, size_t len, struct discord_modify_current_member_params *)

    • void discord_modify_current_member_params_list_to_json(char *wbuf, size_t len, struct discord_modify_current_member_params **)

Public Members

char *nick#