setUsername method
Change the member's username.
await member.setUsername('new-username', 'Testing');
Implementation
Future<void> setUsername(String value, String? reason) =>
_memberMethods.updateMember(
serverId: server.id,
memberId: id,
payload: {'username': value},
reason: reason);