disallowBypassVerification method

Future<void> disallowBypassVerification({
  1. String? reason,
})

Disallow the member to bypass verification.

await member.flags.disallowBypassVerification(reason: 'Testing');

Implementation

Future<void> disallowBypassVerification({String? reason}) {
  final currentFlags = _flags.fold(0, (acc, element) => acc + element.value);

  return _memberMethods.updateMember(
      serverId: server.id,
      memberId: member.id,
      payload: {
        'flags': currentFlags - MemberFlag.bypassedVerification.value
      },
      reason: reason);
}