Delete Guild Role

ORCAcode discord_delete_guild_role(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t role_id)

Delete a guild role.

Note

Requires the MANAGE_ROLES permission

Note

Fires a Guild Role Delete event

Parameters
  • client – the client created with discord_init()

  • guild_id – the unique id of the guild that the role belongs to

  • role_id – the unique id of the role to delete

Returns

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