Get Guild

ORCAcode discord_get_guild(struct discord *client, u64_snowflake_t guild_id, struct discord_guild *ret)

Get the guild with given id.

Note

If with_counts is set to true, this endpoint will also return approximate_member_count and approximate_presence_count for the guild

Parameters
  • client – the client created with discord_init()

  • guild_id – the unique id of the guild to retrieve

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

Returns

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