removeRole method

Future<void> removeRole(
  1. SnowflakeEntity role, {
  2. String? auditReason,
})

Removes role from user.

Implementation

Future<void> removeRole(SnowflakeEntity role, {String? auditReason}) =>
    client.httpEndpoints.removeRoleFromUser(this.guild.id, role.id, this.id, auditReason: auditReason);