Remove Guild Member Role

ORCAcode discord_remove_guild_member_role(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t user_id, u64_snowflake_t role_id)

Removes a role from a guild member.

Note

Requires the MANAGE_ROLES permission

Note

Fires a Guild Member Update event

Parameters
  • client – the client created with discord_init()

  • guild_id – the unique id of the guild where the member exists

  • user_id – the unique id of the user

  • role_id – the unique id of the role to be removed

Returns

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