addRole

open suspend fun addRole(roleId: Snowflake, reason: String? = null)(source)

Requests to add the Role with the roleId to this member.

Parameters

reason

the reason showing up in the audit log

Throws

if something went wrong during the request.