addRole abstract method

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

Adds role to user.

var r = guild.roles.values.first;
await member.addRole(r);

Implementation

Future<void> addRole(SnowflakeEntity role, {String? auditReason});