Add Guild Member Role#
-
ORCAcode discord_add_guild_member_role(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t user_id, u64_snowflake_t role_id)#
Adds a role to a guild member.
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 added
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary