RestCord logo RestCord

addGuildMemberRole

$client->guild->addGuildMemberRole($parameters);

Description

Adds a role to a guild member. Requires the 'MANAGE_ROLES' permission. Fires a Guild Member Update Gateway event.

Parameters

Name Type Required Default
guild.id snowflake true null
user.id snowflake true null
role.id string true null

Response

Returns a 204 empty response on success.