Get Current User#

ORCAcode discord_get_current_user(struct discord *client, struct discord_user *ret)#

Get client’s user.

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

  • 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