Get Guild Roles#

ORCAcode discord_get_guild_roles(struct discord *client, u64_snowflake_t guild_id, struct discord_role ***ret)#

Get guild roles.

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

  • guild_id – guild to get roles from

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

Returns:

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