Search Guild Members#

ORCAcode discord_search_guild_members(struct discord *client, u64_snowflake_t guild_id, struct discord_search_guild_members_params *params, struct discord_guild_member ***ret)#

Get guild members whose username or nickname starts with a provided string.

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

  • guild_id – guild the members belongs to

  • request – parameters

  • ret – if successful, a null-terminated list of discord_guild_member, that should be free’d with discord_guild_member_list_free()

Returns:

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

struct discord_search_guild_members_params#

Methods

  • Initializer:

    • void discord_search_guild_members_params_init(struct discord_search_guild_members_params *)

  • Cleanup:

    • void discord_search_guild_members_params_cleanup(struct discord_search_guild_members_params *)

    • void discord_search_guild_members_params_list_free(struct discord_search_guild_members_params **)

  • JSON Decoder:

    • void discord_search_guild_members_params_from_json(char *rbuf, size_t len, struct discord_search_guild_members_params *)

    • void discord_search_guild_members_params_list_from_json(char *rbuf, size_t len, struct discord_search_guild_members_params ***)

  • JSON Encoder:

    • void discord_search_guild_members_params_to_json(char *wbuf, size_t len, struct discord_search_guild_members_params *)

    • void discord_search_guild_members_params_list_to_json(char *wbuf, size_t len, struct discord_search_guild_members_params **)

Public Members

char *query#

Query string to match username(s) and nickname(s) against.

int limit#

max number of members to return (1-1000)