Get Guild Preview#

ORCAcode discord_get_guild_preview(struct discord *client, u64_snowflake_t guild_id, struct discord_guild_preview *ret)#

Get the preview for the given guild.

Note

If the user is not in the guild, then the guild must be lurkable

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

  • guild_id – guild to get preview from

  • 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