removeRole

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

Requests to remove the Role with the roleId from this member.

Parameters

reason

the reason showing up in the audit log

Throws

if something went wrong during the request.