Get Invite#

ORCAcode discord_get_invite(struct discord *client, char *invite_code, struct discord_get_invite_params *params, struct discord_invite *ret)#

Get an invite for the given code.

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

  • invite_code – the invite code

  • params – request parameters

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

Returns:

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

struct discord_get_invite_params#

Methods

  • Initializer:

    • void discord_get_invite_params_init(struct discord_get_invite_params *)

  • Cleanup:

    • void discord_get_invite_params_cleanup(struct discord_get_invite_params *)

    • void discord_get_invite_params_list_free(struct discord_get_invite_params **)

  • JSON Decoder:

    • void discord_get_invite_params_from_json(char *rbuf, size_t len, struct discord_get_invite_params *)

    • void discord_get_invite_params_list_from_json(char *rbuf, size_t len, struct discord_get_invite_params ***)

  • JSON Encoder:

    • void discord_get_invite_params_to_json(char *wbuf, size_t len, struct discord_get_invite_params *)

    • void discord_get_invite_params_list_to_json(char *wbuf, size_t len, struct discord_get_invite_params **)

Public Members

bool with_counts#

whether the invite should contain approximate member counts

bool with_expiration#

whether the invite should contain the expiration date