Create Guild Role

ORCAcode discord_create_guild_role(struct discord *client, u64_snowflake_t guild_id, struct discord_create_guild_role_params *params, struct discord_role *ret)

Create a new guild role.

Note

Requires MANAGE_ROLES permission

Note

Fires a Guild Role Create event

Parameters
  • client – the client created with discord_init()

  • guild_id – guild to add a role to

  • params – request parameters

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

Returns

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

Warning

doxygenstruct: Cannot find class “discord_create_guild_role_params” in doxygen xml output for project “Orca” from directory: ../xml