title: Add Guild Member Role category: Guild
addGuildMemberRole
$client->guild->addGuildMemberRole($parameters);
Adds a role to a guild member. Requires the 'MANAGE_ROLES' permission. Fires a Guild Member Update Gateway event.
Name | Type | Required | Default |
---|---|---|---|
guild.id | snowflake | true | null |
user.id | snowflake | true | null |
role.id | string | true | null |
Returns a 204 empty response on success.