sync method
Sync the member's flags.
await member.flags.sync([MemberFlag.bypassedVerification], reason: 'Testing');
Implementation
Future<void> sync(List<MemberFlag> flags, {String? reason}) {
final currentFlags = flags.fold(0, (acc, element) => acc + element.value);
return _memberMethods.updateMember(
serverId: server.id,
memberId: member.id,
payload: {'flags': currentFlags},
reason: reason);
}