Add Guild Member Role.md 524 B


title: Add Guild Member Role category: Guild

order: 13

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.