disallowBypassVerification method

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

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);
}